Some help?


#1









<?php

    class Dog {
      public $numLegs = 4;
      public $name;
    public function __construct($name){
      $this->name = $name;
     
    }
    
    public function bark() {
       return "woof";
       
    }
    
    public function greet() {
        
       return " Hi my name is " . $this->name . " and i have " . $this->numLegs . " paws";
       
    }
    }
    
    $dog1 = new Dog("Barker");
    $dog2 = new Dog("Amigo");
    
    echo $dog1->bark();
    echo $dog2->greet();
    ?>
  </p>
</body>


#2

Whats the message you are receiving?