Design and implement an ADT that represents a triangle. The data for the ADT should include the diree sides of the triangle but could also include the mangle’s three angles. This data should be declared private in the class that implements the ADT.
Include at least two initialization operations: One that provides default values for the ADT’s data (in this case a 3, 4, 5 right triangle), and another that sets diis data to client-supplied values. These operations are the class’s constructors.
The ADT also should include operations that look at the values of the ADT’s data; change the values of the ADT’s data; compute the triangle’s area; and determine whether the triangle is a right triangle, an equilateral triangle, or an isosceles triangle.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.