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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Deriving a class from another class
Explanation: Inheritance allows one class to inherit attributes and methods from another class.
Explanation by: Mr. Dubey
Inheritance allows one class to inherit attributes and methods from another class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
128
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate