Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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. 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
Needs to be written in C# console app!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started