Q. What is the MRO (Method Resolution Order)?

  • (A) Order in which variables are declared
  • (B) Order of class instantiation
  • (C) Order in which base classes are searched for a method
  • (D) Order of object destruction
πŸ’¬ Discuss
βœ… Correct Answer: (C) Order in which base classes are searched for a method
Explanation: MRO defines the order in which Python looks for a method in multiple inheritance.
Explanation by: Mr. Dubey
MRO defines the order in which Python looks for a method in multiple inheritance.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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