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++

7th Feb 2023, 11:44 AM
Abdul Rehman
Abdul Rehman - avatar
2 Answers
+ 2
Where is your attempt?
7th Feb 2023, 12:15 PM
Jayakrishna 🇼🇳
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!
9th Feb 2023, 12:57 AM
D_Stark
D_Stark - avatar