This forum is now read-only. Please use our new forums at discuss.codecademy.com.
Exercise 8/10 want to know if code is right!
just want to ask that if i wrote the right code or not!
Practice makes perfect!
public $numLegs = 4;
public function __construct($name)
$this->name = $name;
public function bark()
public function greet()
return "My name is". $this->name;
$dog1 = new Dog("Barker");
$dog2 = new Dog("Amigo");
You got it mate! Thumbs up