🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Inheritance, ABC and MRO: all 10 questions

Quiz: Inheritance, ABC and MRO · Question 2 of 10

Can an abstract base class contain normal (non-abstract) methods?

Can an abstract base class contain normal (non-abstract) methods?

  1. A.Yes, and child classes inherit them
  2. B.No, all methods must be abstract
  3. C.Only static methods
  4. D.Only if it has no abstract methods
Answer & explanation

Correct answer: Yes, and child classes inherit them

describe() in the Shape example is a normal method shared by every shape.

Can you get the rest right without peeking?

Take the timed Quiz: Inheritance, ABC and MRO quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →