Question OOP-INH-0003
EasyWhich relationship does inheritance model?
- A.
HAS-A
- B.
USES-A
- C.
Show answer and explanation
Answer: D
A Dog IS-A Animal. HAS-A relationships are modelled with composition.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Inheritance question
Which relationship does inheritance model?
HAS-A
USES-A
Answer: D
A Dog IS-A Animal. HAS-A relationships are modelled with composition.
PART-OF
IS-A