Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

PHP OOP : Abstract Classes

Abstract Class :

  • when we create abstract class then we can not create object of that abstract class.
  • If we want to use abstract class then we only access with derived class .
  • Just abstract write before the class name.
  • when we create abstract class two condition occurs one is abstract method like :- abstract protected function name ( );
  • abstract means incomplete method we declare but not implement (code).
  • In derived class we have to implement of that abstract method.
Tagged : / / / / / / / / / / / /

PHP OOP : Overriding properties and Methods

Overriding Properties :

  • Same properties on both classes (base and derived class).

Overriding Methods :

  • Same name of method on both classes base or derived class.
Tagged : / / / / / / / / / / / / /