Class inheritance in action
|
<?php
class AbstractClass { function abstractFunction() { die( "AbstractClass::abstractFunction() is abstractn" ); } }
class ConcreteClass extends AbstractClass {}
$test = new ConcreteClass(); $test->abstractFunction();
|
|
|
|
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
|