Classes

Constructor

Getter and setter

Private fields and methods

Static fields and methods

Subclass


Exercises

  1. Create a class with a constructor. create a few objects with the class.
  2. What do getters and setters do?
  3. What are the benefits of private fields and methods?
  4. What are static fields and methods?
  5. What are the benefits of using classes and subclasses?