Skip to main content

Section 03 ยท Stage 1: Learn Java

Java OOP (Object-Oriented Programming)

Master object-oriented programming in Java with clean concept lessons and end-of-module GitHub portfolio projects.

What you will learn

  1. 3.1Classes & Objects8 lessons
  2. 3.2Constructors8 lessons
  3. 3.3Encapsulation8 lessons
  4. 3.4Static & Final7 lessons
  5. 3.5Inheritance10 lessons
  6. 3.6Polymorphism9 lessons
  7. 3.7Abstraction & Interfaces10 lessons
  8. 3.8Enums7 lessons
  9. 3.9Composition & Relationships10 lessons
  10. 3.10Object Class & Equality7 lessons

    Every Java class inherits from Object: print objects with toString(), compare them correctly with == and equals(), and keep hashCode() consistent so equal objects behave as equal everywhere.

    1. The Object class: every class's parent30 min
    2. toString(): print objects nicely32 min
    3. == compares references30 min
    4. Write your own equals()42 min
    5. hashCode() and the equals/hashCode contract42 min
    6. Common mistakes and practice40 min
    7. Must-do problems: Object Class and Equality130 min
  11. 3.11Copying Objects6 lessons

    When b = a shares an object instead of copying it, and how to make real copies: copy constructors and copy methods, shallow vs deep copies, and clone() with Cloneable.

    1. Assignment is not a copy35 min
    2. Copy constructors and copy methods35 min
    3. Shallow copy vs deep copy40 min
    4. clone() and Cloneable40 min
    5. Common mistakes and practice40 min
    6. Must-do problems: Copying Objects120 min
  12. 3.12References, Casting & Immutability10 lessons
  13. 3.13OOP Mastery & Code Tracing8 lessons

    Pull all of OOP together: read and trace unfamiliar programs, spot and fix design problems and bugs, design classes from requirements, apply SOLID, and build a multi-class application, ready for placement interviews and coding rounds.

    1. Read an unfamiliar OOP program30 min
    2. Trace object creation and constructors35 min
    3. Trace inheritance and polymorphism35 min
    4. Spot OOP design problems35 min
    5. Find and fix OOP bugs35 min
    6. Design classes from requirements35 min
    7. SOLID principles in plain words35 min
    8. Build a multi-class application35 min
  14. 3.14Java OOP Mini Projects9 lessons