Pure virtual Draw( ) Function
Learn to create a pure virtual Draw ( ) function in a Shape Class.
We'll cover the following...
Challenge
Write a program to create a Shape
class containing a pure virtual draw( )
function. Inherit from these two classes Rectangle
and Circle
. Create an array of upcasted pointers in main( )
and call the draw( )
...