← 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?
- A.Yes
- B.No
- C.Only if it has no abstract methods
- 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 →