An abstract class or method is defined with the abstract
keyword
1) An abstract class
is a class that contains at least one abstract method, an object can’t create by an abstract class.
2) In An abstract class a member variable never be an abstract, method only made abstract.
3) It is a type of Access modifier
Example of Abstract Class
1 2 3 4 5 6 | <?php abstract class Student{ abstract public function Welcome(); } |