[Solved] Object in one class is the instance variable in the other. Relation between those classes?
The two classes are certainly related i.e. they have an Association. But, the nature of their relationship could either be an Aggregation or Composition. To give you an example and thereby explain how it’s different than Inheritance; consider the following classes: Shape (Base class; can be abstract) Circle, Triangle, Square etc. (Derived classes) Line, Colour … Read more