Tag: polymorphism

PHP Interface

Interfaces allow us to specify what methods/functions of a class should implement. It’s quite easy to use a variety of different classes in the same way. When one or more classes use the same interface, it is referred to as...

PHP Polymorphism

There are two types of Polymorphism; i.e.  Compile time (function overloading)Run time (function overriding) But PHP "does not support" compile time polymorphism, which means function overloading and operator...

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved