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... READ MORE >>
Way1 to inherit one class from another using the keyword extends <?php class Course{ protected... READ MORE >>
Code below defined an TV class. We cannot do much with it except turning it on and off. The class TV is an abstraction of a real TV in a very simple use case. <?php class TV { private $isOn =... READ MORE >>
Encapsulation is used to bind the data using get and set method or hide the values to prevent from unauthorized parties' to directly access them. For encapsulation, we generally use the concept of visibility (public, private, protected). Public... READ MORE >>
Recent Comments