← Quiz: Inheritance: all 10 questions
Quiz: Inheritance · Question 8 of 10
class Manager(Employee) and class Intern(Employee) — which type of inheritance is this?
class Manager(Employee) and class Intern(Employee) — which type of inheritance is this?
- A.Single
- B.Multilevel
- C.Multiple
- D.Hierarchical
Answer & explanation
Correct answer: Hierarchical
One parent with several children is hierarchical inheritance.
Can you get the rest right without peeking?
Take the timed Quiz: Inheritance quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →