🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: OOP Interview Questions: all 10 questions

Quiz: OOP Interview Questions · Question 3 of 10

Can an abstract class have a constructor?

Can an abstract class have a constructor?

  1. A.Yes
  2. B.No
  3. C.Only if it has no abstract methods
  4. D.Only in Python
Answer & explanation

Correct answer: Yes

Its constructor runs as part of creating a subclass object.

Can you get the rest right without peeking?

Take the timed Quiz: OOP Interview Questions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →