This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Ivan Kotora
about 9 years

What happend? Exercise 4

Hi I wanna ask for my mistake in the exercise 4. here is my code <?php class Person { public $isAlive = true; public $fristname; public $lastname; public $age; } $teacher = new Person(); $student = new Person(); echo $teacher->isAlive; ?> but still , when I hit Save and Submit, it outputs: Oops, try again. Did you add the '$firstname', '$lastname' and '$age' properties?

Answer 54f6e4119376762b33001574

0 votes

Permalink

Oh sorry bug fixed $fRIstname

points
Submitted by Ivan Kotora
about 9 years

Answer 55119dc376b8fe8c52002eb3

0 votes

Permalink

Hi Ivan, try to add $ sign to isAlive property.

points
Submitted by Niv Levy
about 9 years

Answer 5516da5ce39efe8faf001740

0 votes

Permalink

hi Niv i tried doing what you said and it worked thanks so much:)

points
Submitted by MissPotato201
about 9 years

Answer 560181d7e39efebcd300032b

0 votes

Permalink

if you could spell firstname right you would get it lol

points
over 8 years