Question: Design class Triangle has (base, height) as a private data members and the following function + default constructor 2- Function inputo to input the triangle

Design class Triangle has (base, height) as a private data members and the following function + default constructor 2- Function inputo to input the triangle information 3 Function displayo to print triangle's values. And any other functions you think it required. In main function - create 2 of Triangle object and input the information of them. 2- display the area of all Triangle. Note: area of triangle ((1/2)*base height)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
