I am preparing for the OCP Java7 certification. I am unable to understand the following exam objective:
"Apply object composition principles"
Can anyone please help explain this objective. Are there multiple composition principles or just one - define a variable of type A in type B, if you want to use the functionality of A in B, rather than maling type B inherit type A?