Guest User

Untitled

a guest
Apr 19th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title> Challenge Time! </title>
  5. <link type='text/css' rel='stylesheet' href='style.css'/>
  6. </head>
  7. <body>
  8. <p>
  9. <?php
  10. class Cat {
  11. public $isAlive = true;
  12. public $numLegs = 4;
  13. public function __construct($name)
  14. $this->prop = $name;
  15. public function meow(){
  16. echo "Meow meow";
  17. }
  18. }
  19. $cat1 = new Cat ("CodeCat");
  20. echo meow($cat1)
  21. ?>
  22. </p>
  23. </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment