A

Admin • 832.27K Points
Coach

Q. What is inheritance in Python?

  • (A) A way to store data
  • (B) Deriving a class from another class
  • (C) Running a program
  • (D) Allocating memory
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Inheritance allows one class to inherit attributes and methods from another class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.