A

Admin • 833K Points
Coach

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

  • (A) inherit
  • (B) extends
  • (C) derives
  • (D) class SubClass(BaseClass):
  • Correct Answer - Option(D)
  • Views: 27
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Inheritance is specified by passing the base class in parentheses after the subclass name.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.