← 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?
- A.Yes, and child classes inherit them
- B.No, all methods must be abstract
- C.Only static methods
- 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 →