+ 1
C++
Create a base class called Polygon and 2 derived classes, Rectangle and Triangle. Instantiate at least one object for each derived class and apply the principle of inheritance to calculate the area of two objects, rectangle and triangle. Use constructors and deconstructors in your program.
4 Answers
+ 4
Check Out this Code
https://code.sololearn.com/caUGCT5rw4N4/?ref=app
+ 1
What is your question?
0
To write a program with that information given..Please!
0
Well, if you provide some code, wr can help you.
But we won't do the whole work for you