View Code? Open in Web Editor
NEW
This project forked from ga-chicago/js-classes-lab
js-classes-lab's Introduction
- These are purposefully ambiguous
- On your own, come up with attributes and methods that make sense
- As you go down the list, some classes might be able to inherit from previous classes you've already written
- Create a class for a person
- Create a class for a pet
- Create a class for a boat
- Create a class for an artist
- Create a class for a robot
- Create a class for a computer
- Create a class for a dog
- Create a class for a painter
- Create a class for a car
- Create a class for a laptop
- Create a class for a humvee
- Create a class for a smart phone
- Create a class for a baby
- Create a class for a fire truck
- Create a class for a bird
- Create a single factory object to generate robots
- The factory should have an array of robots that it has generated
- A robot should have a serial number, based on what index it is in the factory's robots array
- Create a class for computer factories
- A factory should have a name attribute which is set by passing a parameter into the constructor for the factory
- A factory should have an array of computers that it has generated
- A computer should have a serial number attribute, based on what index it is in the factory's computers array
- A computer should have a maker name attribute, which the factory sets during generation
js-classes-lab's People
Contributors
Watchers