Your cart is currently empty!
In this homework, you will write your first C++ class. Your class name will be Triangle. This class can represent a triangle on a 2D plane with sides of length A, B, C such as T =(A=3.0, B=4.0, C=5.0) Your class will have the following features A no parameter constructor (A, B,…
In this homework, you will write your first C++ class. Your class name will be Triangle. This class can represent a triangle on a 2D plane with sides of length A, B, C such as T =(A=3.0, B=4.0, C=5.0)
Your class will have the following features
You will apply all object oriented rules we learned during the lectures (member initializer syntax, const keywords, etc.)
Test each function of your new class at least two times with different parameters. You should also write two functions that will take Triangle objects using call by value and call by reference.
Notes:
and exit the program