Q. What is `super()` used for in Python OOP?

  • (A) To call constructor of same class
  • (B) To define a static method
  • (C) To call method from parent class
  • (D) To destroy an object
πŸ’¬ Discuss
βœ… Correct Answer: (C) To call method from parent class
Explanation: `super()` is used to access methods of the parent class from the child class.
Explanation by: Mr. Dubey
`super()` is used to access methods of the parent class from the child class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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