Q. Which Python keyword is used to inherit from a class?

A
extends
B
implements
C
class
D
inherit
Solution:

In Python, inheritance is achieved by defining a new class with the class keyword and specifying the parent class in parentheses.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!