This C++ project demonstrates fundamental principles of Object-Oriented Programming (OOP) using custom geometric entities. The application configures explicit data models for tracking spatial boundaries, properties, names, and color profiles across complex primitive instances, utilizing overloaded comparison operations to evaluate relative dimensional bounds.
The application codebase implements concrete class representations to evaluate relational bounds parameters:
SEVERUS SNAPE, REMUS LUPIN), color spaces, lengths, widths, and radii across discrete entity models.Below are structural class prototypes handling data tracking interfaces across shape fields:
C++ Header: Shape Definitions Sample// Abstract representation tracking attribute fields and spatial metadata
class Rectangle {
private:
std::string name;
double length;
double width;
std::string color;
public:
Rectangle(std::string n, double l, double w, std::string c)
: name(n), length(l), width(w), color(c) {}
// Operator checking dimensional bounds size relations
bool operator<(const Rectangle& other) const {
return (this->length * this->width) < (other.length * other.width);
}
};
The terminal matrix window below shows the direct console logs emitted when building, initializing, and compiling the comparison routines across the shape entity definitions: