Challenges

Let's work on applying your knowledge of objects with some challenges.

1 - Person Object

Create a person object and give them various properties.

2 - Inheritance Challenge

Create a child object that inherits all of the properties and methods from your person object. Try adding things to the child object without changing the person object.

3 - Family Challenge

Using the skills you've acquired, create a family of person objects, children, maybe a few pets?

Note

There is no sample data or output provided with the challenges because you are meant to create the properties yourself. If you are truly struggling, check out the solution section.

Last updated