Q. Which PHP feature allows method behavior to change based on object type?

  • (A) Encapsulation
  • (B) Abstraction
  • (C) Inheritance
  • (D) Polymorphism
πŸ’¬ Discuss
βœ… Correct Answer: (D) Polymorphism
Explanation: Polymorphism allows different behavior for the same method.
Explanation by: Yami Thakur
Polymorphism allows different behavior for the same method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
47
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
85%
Success Rate