Programming in C++ Relationship Between Two Classes In C++, we define the properties and behavior of objects by using the class mechanism The three most common relationships between two classes are as follows 1. Two classes are independent of each other and have nothing in common 2. Two classes are related by inheritance 3. Two classes are related by composition8 Relationship Between Two Classes ❖In C++, we define the properties and behavior of objects by using the class mechanism. ❖The three most common relationships between two classes are as follows: 1. Two classes are independent of each other and have nothing in common. 2. Two classes are related by inheritance. 3. Two classes are related by composition