Question: Using the Point class write a composite class called Triangle. The Triangle class will have three-point objects as its data members (to store three vertices
Using the Point class write a composite class called Triangle. The Triangle class will have three-point objects as its data members (to store three vertices of a triangle object). The class should have a constructor, a function to compute area of a triangle and a print function.
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
Solution Code and output include include using namespace std class Triangle private float m1... View full answer
Get step-by-step solutions from verified subject matter experts
