tags:

views:

133

answers:

1

In case of php, what is the difference between runtime and compile time polymorphism

+6  A: 

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.

sepp2k