Question OOP-CLS-0059
MediumA House has Rooms, and the Rooms are created and destroyed with the House. Which relationship is this?
- A.
Inheritance
- B.
Aggregation
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Classes and Objects question
A House has Rooms, and the Rooms are created and destroyed with the House. Which relationship is this?
Inheritance
Aggregation
Sign up free to see the answer and a step-by-step explanation.
Association only
Composition