Question OOP-INH-0070
HardIn C++, private inheritance (class D : private B) models which relationship?
- A.
'Has-a' through a pointer
- B.
No relationship
- 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
Inheritance question
In C++, private inheritance (class D : private B) models which relationship?
'Has-a' through a pointer
No relationship
Sign up free to see the answer and a step-by-step explanation.
'Implemented in terms of', not 'is-a'
'Is-a'