Why Won't This Print


#1



https://www.codecademy.com/en/courses/web-beginner-en-ZQQ64/0/9?curriculum_id=5124ef4c78d510dd89003eb8


The error code says that meow doesn't exist when I try to call it at the end.


<!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 $name;
              public function name__construct($name) {
                  $this->name = $name;
              }
                public function meow() {
                    return "Meow meow";
                }
          };
          $cat1 = new Cat("CodeCat");
          echo $cat1->meow;
        ?>
      </p>
    </body>
</html>


#2

You forgot about parentheses. meow is a function. Use $cat1->meow().