0
Please help me to solve this problem
You are making a drawing application. The code you are given declares a Shape base class, and you are making separate classes for each shape that your application is going to support. Inherit the Rectangle class from the Shape class and call its draw() method in C++
2 Answers
+ 2
Where is your attempt?
0
It tells you exactly what you need to do,
Create a shape class (parent class)
Give it a method called draw()
Create a rectangle class (subclass)
Extend subclass and call draw() method.
thats it your done!