A

Admin • 833K Points
Coach

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

  • (A) inherits
  • (B) extends
  • (C) super
  • (D) class Child(Parent)
  • Correct Answer - Option(D)
  • Views: 21
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

In Python, inheritance is done by passing the parent class in parentheses.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.