This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
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
Answer 55119dc376b8fe8c52002eb3
Answer 5516da5ce39efe8faf001740
0 votes
hi Niv i tried doing what you said and it worked thanks so much:)
Answer 560181d7e39efebcd300032b
0 votes
if you could spell firstname right you would get it lol
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency