πŸ“Š Ruby
Q. What does polymorphism allow in OOP?
  • (A) Objects of the same class to have different methods
  • (B) Objects of different classes to be treated as objects of a common superclass
  • (C) Objects of the same class to be treated as objects of different classes
  • (D) Objects of the same class to have different methods
πŸ’¬ Discuss
βœ… Correct Answer: (B) Objects of different classes to be treated as objects of a common superclass

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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