Q. Which keyword is used to inherit from a class?

  • (A) inherits
  • (B) extends
  • (C) super
  • (D) class Child(Parent)
πŸ’¬ Discuss
βœ… Correct Answer: (D) class Child(Parent)
Explanation: In Python, inheritance is done by passing the parent class in parentheses.
Explanation by: Mr. Dubey
In Python, inheritance is done by passing the parent class in parentheses.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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