The book I'm using wants me to make a Figure class that has functions erase() draw() and center(). Then it has the subclasses Rectangle and Triangle.
The first step is to make all three classes so that they have all the necessary methods that simply output which class is being used and what function it is calling. Then the methods need to be changed to virtual methods.
The next step is to actually make the functions do something. That's where my issue is. It doesn't seem like I'm actually using the virtual functions the way that I'm supposed to. It just seems like I'm doing it the exact same way that I would were I just to overload the functions.