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

7th Jul 2018, 2:35 PM
Vincent Alulu
Vincent Alulu - avatar
4 odpowiedzi
13th Jul 2018, 10:35 PM
Femi
Femi - avatar
+ 1
What is your question?
7th Jul 2018, 5:59 PM
Matthias
Matthias - avatar
0
To write a program with that information given..Please!
8th Jul 2018, 9:41 AM
Vincent Alulu
Vincent Alulu - avatar
0
Well, if you provide some code, wr can help you. But we won't do the whole work for you
8th Jul 2018, 11:22 AM
Matthias
Matthias - avatar