DEV Community


Class Abstraction | Abstract class in PHP

Mahedi Hasan
・1 min read

PHP 5 introduces abstract classes and methods. Classes defined as abstract cannot be instantiated, and any class that contains at least one abstract method must also be abstract. Methods defined as abstract simply declare the method's signature - they cannot define the implementation.

Discussion (0)