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

1 Expert Approved Answer
Step: 1 Unlock

Solution Code and output include include using namespace std class Triangle private float m1... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!