Question: c++ both same question Lab Work: Write the definition for a class called triangle that has integer data member's which are the 3 sides of

c++
both same question  c++ both same question Lab Work: Write the definition for a
class called triangle that has integer data member's which are the 3

Lab Work: Write the definition for a class called triangle that has integer data member's which are the 3 sides of the triangle. The class has the following: The triangle is defined by the length of its 3 sides. Each length is an integer. You can name the sides whatever you want, but you do need three variables. The class must have three setter methods (setA(int), setBint), setC(int)) that allow a programmer to change the length of each side. The class must have four additional methods isEquilateral, isScalene(), islsosceles(). and isRight(). Each of these last four methods has no parameters and returns a boolean value that is true if the appropriate condition is met. wo Define three types of constructors and one destructor Defineone accessor and one mutator function that use this pointer. Define a variable count that counts the number of objects created. Define a function to compare the area of two objects to see which is the larger

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!