🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Single
  2. B.Multilevel
  3. C.Multiple
  4. 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 →