Well done!
You have completed Understanding Subclassing and Inheritance in Python Quiz!
Quiz Question 1 of 5
In the context of the Python class inheritance model, what would happen if the __init__()
method of the Developer
class was defined without calling the superclass's __init__()
method?
Choose the correct answer below:
-
A
The
Developerclass will not inherit any attributes from the
Employeeclass unless they are redefined.
-
B
The instance attributes from the
Employeeclass will be inherited by default.
-
C
An error will occur because the superclass's
init()method must be called explicitly.
-
D
The
Developerclass will inherit all methods but no attributes from the
Employeeclass.