extends in action
|
<?php class Checkout { final function totalize() { // calculate bill } }
class IllegalCheckout extends Checkout { final function totalize() { // change bill calculation } }
$checkout = new Checkout();
?>
|
|
|
|
|
HTML code for linking to this page:
PHP Function Reference -> Users Code Examples / Notes - > extends:
- extends
- extends
|