A Brief Introduction

In this lesson, we'll get to know the different relationships between classes.

Interaction Between Class Objects

By now, we’ve learned all we need to know about the definition and the behavior of a class. The concepts of inheritance and polymorphism taught us how to create dependent classes out of a base class. While inheritance represents a relationship between classes, there are situations where there are relationships between objects.

The next step for us is to use different class objects to design an application. This means that objects of independent classes would have to find a way to interact with each other.

Get hands-on with 1200+ tech skills courses.