Abstract class in detail

Abstract classes are the classes in which at least one method is abstract. Unlike C++ abstract classes in PHP are declared with the help of abstract keyword. Use of abstract…

0 Comments

PHP OOP – Interfaces

An Interface allows the users to create programs, specifying the public methods that a class must implement, without involving the complexities and details of how the particular methods are implemented.…

0 Comments

PHP OOP – Abstract Classes

We can not make object of an abstract class. If we want to use it then we can inherit only. Abstract class have two condition compulsary: 1. atleast one abstract…

0 Comments

PHP OOP – Inheritance

When a class derives from another class. The child class will inherit all the public and protected properties and methods from the parent class. In addition, it can have its…

0 Comments