Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title> Challenge Time! </title>
- <link type='text/css' rel='stylesheet' href='style.css'/>
- </head>
- <body>
- <p>
- <?php
- class Cat {
- public $isAlive = true;
- public $numLegs = 4;
- public function __construct($name)
- $this->prop = $name;
- public function meow(){
- echo "Meow meow";
- }
- }
- $cat1 = new Cat ("CodeCat");
- echo meow($cat1)
- ?>
- </p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment