DEV Community

loading...

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.

https://www.codechief.org/article/class-abstraction-abstract-class-in-php.html

Discussion (0)