开发者

Php Difference between compile time and run time polymorphism

In case of php, what is 开发者_开发知识库the difference between runtime and compile time polymorphism


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜