πŸ“Š Python
Q. Which of the following keywords is used to inherit a class in Python?
  • (A) inherit
  • (B) extends
  • (C) inherits
  • (D) class Derived(Base):
πŸ’¬ Discuss
βœ… Correct Answer: (D) class Derived(Base):

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
49
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate