In case of php, what is the difference between runtime and compile time polymorphism
In case of php, what is the difference between runtime and compile time polymorphism
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In php there is no such thing as compile-time polymorphism.
Compile-time polymorphism means that a function acts differently depending on type information that was known at compile-time. Since php is dynamically typed, it can’t make any decisions based on types statically, so there can’t be any kind of compile-time polymorphism.