Question: Needs to be written in C# console app! 1. (30 Points) Develop a Ca project that implements the following class hierarchy. Add methods when needed.
1. (30 Points) Develop a Ca project that implements the following class hierarchy. Add methods when needed. Class: GraphObject Public members double cal areaO double cal perimetero; Protected members: double area Class: Right Triangle Class: Square double perimeter: Public members: Public menibers: double cal area0: double ca areao; double cal perimeter double cal perimetero; Private members: Private members: int height; int segment int base All classes shall have a constructor that sets the values for the data members. All classes shall have the public method cal area()and cal perimetero The results of the two functions cal area and cal perimeter()shall be stored as the protected members of GraphObject. Test the above class hierarchy by writing a driver program. The driver shall instantiate the following two objects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
