Which is a perfect example of runtime polymorphism?



Which is a perfect example of runtime polymorphism?..

Answer / Prakash Jangpangi

A perfect example of runtime polymorphism in PHP could be method overriding. For instance, consider a Parent class with a method 'eat()', and Child1 and Child2 classes that extend the Parent class and each override the 'eat()' method to represent specific animal behaviors.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What are the features and advantages of object-oriented programming?

5 Answers   HCL,


hi..this is kumar...how m,uch time req for php preparation?is any coaching avaiable in vizag for php?

3 Answers  


What is the use of header() function in PHP? What the Limitation of HEADER()?

1 Answers  


What is full form of php? Who is the father or inventor of php?

1 Answers  


Apart from mail() function to send emails,is there any other functions in PHP to send emails?

4 Answers  


I am a 2007 Passed out, Jobless for almost 2.6 years. I am preparing myself as a Php programmer. Will i get a job in Php and can any one guide me please.

5 Answers   HCL,


What are hooks in php?

1 Answers  


What is php crud api?

1 Answers  


How does csrf token work?

1 Answers  


How many ways we can give the output to a browser?

6 Answers  


Is php secure?

1 Answers  


How to pass an argument to a function?

1 Answers  


Categories