Advertisement
Guest User

Untitled

a guest
Sep 5th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. interface iAnimal {
  2.     public function breathe();
  3.     public function die();
  4.     public function birth($method, $gestation);
  5. }
  6.  
  7. interface iMammal extends iAnimal {
  8.     public function numOfLegs();
  9.     public function colourOfHair();
  10. }
  11.  
  12. class Dog implements iMammal {
  13.  
  14.     function __construct($numOfLegs, $colour) {
  15.    
  16.     }
  17.  
  18.     public function breathe() {
  19.         //show how to breathe on land and frequency
  20.     }
  21.  
  22.     public function die() {
  23.         //kill dog
  24.     }
  25.  
  26.     public function numOfLegs($numOfLegs = 4) {
  27.         //return number of legs
  28.     }
  29.  
  30.     public function colourOfHair() {
  31.         //return colour of hair
  32.     }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement