When a class
Abstract class is only use for inheriting another class. Main purpose of creating abstract class is to protected or restricted from direct object creation.
Example:
Output:
Fatal error: Cannot instantiate abstract class Harishchandra
When a class
Abstract class is only use for inheriting another class. Main purpose of creating abstract class is to protected or restricted from direct object creation.
Example:
Output:
Fatal error: Cannot instantiate abstract class Harishchandra