In order to use area() with the pointers to class CPolygon, this member should also have been declared in the
class CPolygon, and not only in its derived classes, but the problem is that CRectangle and CTriangle implement
different versions of area, therefore we cannot implement it in the base class. This is when virtual members
become handy: