php abstract method code example
Example 1: abstract function php
abstract class absclass { // mark the entire class as abstract
abstract public function fuc();
}
Example 2: php abstract class constant
abstract class Hello {
const CONSTANT_1 = 'abstract'; // Make Abstract
const CONSTANT_2 = 'abstract'; // Make Abstract
const CONSTANT_3 = 'Hello World'; // Normal Constant
function __construct() {
Enforcer::__add(__CLASS__, get_called_class());
}
}