开发者

Php Difference between compile time and run time polymorphism

开发者 https://www.devze.com 2023-01-02 06:23 出处:网络
In case of php, what is 开发者_开发知识库the difference between runtime and compile time polymorphismIn php there is no such thing as compile-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

精彩评论

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