A

Admin • 833K Points
Coach

Q. Which of the following keywords is used to inherit a class in Python?

  • (A) inherit
  • (B) extends
  • (C) inherits
  • (D) class Derived(Base):
  • Correct Answer - Option(D)
  • Views: 32
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Python uses the syntax `class Derived(Base):` to inherit from a base class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.