Thank And_Skoa you answered my one question but now the problem I have is that I do not have access to the member functions of the derived classes (E.G Circle and Square) instead the only functions available at my disposal is the base class functions. I suppose this has something to do with my declaration of the object; see below:
Shape* circleObj = new Circle();
There are functions exclusive to the class Circle that I want access to but instead I get access only to the base class (i.e. Shape) functions.
PLEASE ASSIST.
Bookmarks