Skip Top Navigation Bar

Object Oriented Programming

This section takes you through the fundamentals of Object-Oriented Programming in Java: classes and packages, interfaces, records, and inheritance.

  1. Objects, Classes, Interfaces, Packages, and Inheritance

    Introducing the object oriented programming.

  2. Classes and Objects

    Defining your own classes, declaring member variables, methods, and constructors.

  3. Using Records to Model Immutable Data

    How to model your immutable data with records to make your code simpler and more readable.

  4. Inheritance

    Leveraging inheritance in Java applications.

  5. Interfaces

    Creating and using interfaces.

  6. Packages

    How to bundle classes and interfaces into packages, how to use classes that are in packages, and how to arrange your file system so that the compiler can find your source files.