Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
7 Lessons (55m)
    • 1. What You'll Learn

      2:18
    • 2. The Old Way: Function Constructors

      9:58
    • 3. The New Way: ES6 Classes

      6:40
    • 4. Static Class Methods

      10:00
    • 5. Extends and Super Keywords

      9:42
    • 6. Getter Methods

      6:52
    • 7. Setter Methods

      9:47

Project Description

A brand new skyscraper in New York City has an indoor parking garage for its tenants, maintenance crew, and visitors. Hiring a parking garage attendant for such a big building would be quite expensive and slow because thousands of cars would be entering and exiting the building every day, and a human attendant would not be able to keep up with the fast pace.

You are a software developer, and the building has hired you to write some automated software that will replace the parking garage attendant. And if it proves to be successful, you can sell the same software to other buildings and public parking lots as well and become a millionaire! But you will have to use Classes in order to make everything work as expected.

  1. Think about the Classes you'll have to create: the parking garage, the parking spot, the type of vehicle, etc. What properties do each of those classes need to have?
  2. When you create a parking garage or a parking lot, each spot is given a number starting at 1.

  3. When a car enters, a ticket is given to the driver. In order to issue a ticket, you have to record the license plate and the color of the car. In addition, you must assign the car an available parking spot.

  4.  When the car leaves, the parking spot it occupies should become available so that another.

Student Projects