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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!