Quick Quiz!

Test your understanding of inheritance by taking this short quiz.

1

Which of the following syntax is used to inherit ChildClass from the ParentClass?

A)
class ParentClass(ChildClass):
B)
class ChildClass(ParentClass):
C)
class ChildClass inherts ParentClass:
D)
class ChildClass extends ParentClass:
Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.