Well done!
You have completed Understanding Subclassing and Inheritance in Python Quiz!
Quiz Question 1 of 5
How can you modify the dev_display()
method in the Developer
class to include both the developer’s proficiencies and their hire year from the Employee
class?
Choose the correct answer below:
-
A
Inherit the
emp_display()
method and add it todev_display()
using thesuper()
function. -
B
Add print(f"Employee {self.e_id} hired in {self.hire_year} proficient in {self.lang_xp}") within
dev_display()`. -
C
Modify the
__init__()
method of theDeveloper
class to include the hire year. -
D
Call the
emp_display()
method withindev_display()
to include the hire year.