You can define the following relationships between two object classes:
- Inheritance between two classes
- Extending the functions of a class by implementing interfaces (a relationship between classes and interfaces)
- Compound interfaces (a relationship between interfaces)
- Friends relationship (a relationship between a class and its users).