Class inheritance in action : Class Inheritance : Class PHP Source Code


PHP Source Code » Class » Class Inheritance »

 

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:

Follow Navioo On Twitter

PHP Source Code

 Navioo Class
» Class Inheritance