About this document
C++ Polygon and Triangle Classes by Robby Darabana is a document available to read on EtoBox.
The document defines a Poligon base class to represent polygons with protected member variables for the number of sides and an array to store the side lengths. It includes constructors, destructor, and methods to display sides, calculate perimeter, and access sides by index. It also defines a Triunghi derived class from Poligon to represent triangles, with a constructor that initializes the number of sides to 3 and a method to check if a triangle is a right triangle. The main function instantiates a Triungh
- Author
- Robby Darabana
- Language
- EN