Class Inheritance In Action

 
    <?phpclass AbstractClass {
    function abstractFunction() {
        die( "AbstractClass::abstractFunction() is abstract\n" );
    }
}class ConcreteClass extends AbstractClass {}$test = new ConcreteClass();
$test->abstractFunction();

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.