OOP: Class Relationships
Please see my other Object-Oriented Programming (OOP) articles. Modeling Real-World Objects through Relationship As demonstrated by my Object-Oriented Programming (OOP) articles, OOP provide several mechanisms for code reuse, such as class inheritance. These mechanisms work by relationships which may exist between classes. Is-A Relationship (Inheritance) Inheritance demonstrates the first type of relationship – is-a, where…