What is polymorphism in oop php?



What is polymorphism in oop php?..

Answer / Anup Kumar

Polymorphism in Object-Oriented Programming (OOP) PHP allows objects of different classes to be treated as if they were instances of a common base class. This enables a method call on an object to behave differently based on the actual class of the object, enhancing flexibility and reusability.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What are escaping characters? Explain with an example?

1 Answers  


What is the use of ajax in php?

1 Answers  


What are the options to transfer session ids?

1 Answers  


Tell me how is it possible to return a value from a function?

1 Answers  


Are php session secure?

1 Answers  


Are sessions stateless?

1 Answers  


How do you count numbers in php?

1 Answers  


What is a persistent cookie in php?

1 Answers  


What does $_cookie means?

1 Answers  


Can we extend multiple classes in php?

1 Answers  


Tell me how stop the execution of a php scrip?

1 Answers  


How to process the uploaded files?

1 Answers  


Categories