Unit 2: Using Objects

  • Introduces object-oriented programming (OOP) and instantiating objects from classes.
  • Discusses method calling and passing parameters to methods.
  • Explores constructors, both default and parameterized, to initialize objects.
  • Differentiates between primitive data types and reference types (objects).
  • Covers basic string manipulations and the String class.
  • Discusses encapsulation and why we use getter and setter methods.


Connections to PBL:

  • In the front-end, objects might represent UI components or encapsulate form data to send as JSON to an API.
  • The back-end can leverage objects to model real-world entities (e.g., a User class to store user information, with methods for updating).
  • APIs often handle complex objects sent in requests, such as a user profile or order, and parse these into backend models.

Link back to the Team Teach Lesson itself: Unit 2 Team Teach