Question: write a class Triangle which has three fields to represent the three sides of a triangle a) Write a constructor which takes three parameters to
write a class Triangle which has three fields to represent the three sides of a triangle
a) Write a constructor which takes three parameters to initialize the values for the three sides
b) Overload the operator to add two Triangle objects and return a larger Triangle object.
c) Write a method bool equilateral) which returns true if all the sides are equal otherwise returns false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
