Implement an interface
|
<?php interface Chargeable { public function getPrice(); }
class Employee implements Chargeable { protected $price;
public function getPrice() { return $this->price; } }
$product = new Employee();
?>
|
|
|
|
|
HTML code for linking to this page:
Related in same category :
-
|