abstract keyword is used to say that a method or class cannot be created in your program as it stands : Abstract Class « Class « PHP






abstract keyword is used to say that a method or class cannot be created in your program as it stands

 
<?
    abstract class Dog {
            abstract function bark( ) {
                    print "Woof!";
            }
    }
?>
  
  








Related examples in the same category

1.Define abstract class
2.abstract class demo
3.Using Abstract Classes and Methods
4.Using Abstract Classes in PHP 5