Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. class Item {
  2. public $name;
  3. public function __constructor($name) {
  4. $this->name = $name;
  5. }
  6. public function ShowDate() { ... };
  7. }
  8.  
  9. class thing extends Item{
  10. public $dimension;
  11. public function __constructor ($name, $dimension) {
  12. parent::$name;
  13. $this-> $dimension = $ dimension;
  14. }
  15. }
  16.  
  17. class food extends Item{
  18. public $place;
  19. public function __constructor($name, $place) {
  20. parent::$name;
  21. $this->place = $place;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement