Home >> PHP >> What is Polymorphism types in PHP

What is Polymorphism types in PHP

There are two types-

1)-Compile Time
2)-Run Time

1)-Compile Time:-Compile time polymorphism is achived by method overloading.

2)-Run Time:-Run time polymorphism is achived by method overriding.

Post Your Comment

Next Questions
What is overloading
What is overriding
What is abstraction
What is abstract class
Implementation of abstract method
What is interface
What is difference between abstract class and interface
What is inheritance
Inheritance types
What is single inheritance
What is multiple inheritance
What is multilevel inheritance
How to use static method and property in inheritance
How to use self and parent with static
How to use self and parent without static
What is visibility
What is the difference between public, private, and protected
What is final
What is final class
What is final method
What is final variable
How to print half pyramid using star
How to print half pyramid using number
How to print inverted half pyramid using star
How to print inverted half pyramid using number

Copyright ©2022 coderraj.com. All Rights Reserved.