Mega Code Archive

 
Categories / Php / Class
 

The final keyword is used to declare that a method or class cannot be overridden by a subclass

<?     class Dog {             private $Name;             private $DogTag;             final public function bark( ) {                     print "Woof!\n";             }     } ?>