Question: Write a C++ class definition for a triangle class. The class should have the following members: Side1, side2 and side 3 Area function to compute
Write a C++ class definition for a triangle class. The class should have the following members:
Side1, side2 and side 3
Area function to compute the area of the triangle
Perimeter function to compute the perimeter of the triangle
Print function to print the area, perimeter and the sides
Appropriate constructors
A main function to test the class functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
