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
3.1Classes & Objects8 lessons
Model real-world things as Java classes, create objects with new, give them state and behaviour, and manage many objects through references, arrays and null.
- What is object-oriented programming?15 min
- Procedural vs object-oriented programming25 min
- Classes: the blueprint of objects28 min
- Objects: instances of a class30 min
- State and behaviour: fields and methods30 min
- Many objects, references and null35 min
- Common mistakes and practice35 min
- Must-do problems: Classes and Objects150 min
3.2Constructors8 lessons
Constructors give every new object a valid starting state: default and parameterized constructors, the this keyword, overloading, and chaining with this().
3.3Encapsulation8 lessons
Keep objects correct by hiding their data behind private fields and well-designed public methods that check every change.
3.4Static & Final7 lessons
Shared class members, static methods and blocks, and values that never change: when to use static, final and static final.
3.5Inheritance10 lessons
Reuse code with parent and child classes: extends, protected, multilevel and hierarchical families, super(), constructor order, final methods and classes, and your own exception classes.
- Why inheritance?25 min
- extends: parent and child classes30 min
- Multilevel and hierarchical inheritance30 min
- Why a class can extend only one class25 min
- Call the parent constructor with super()30 min
- Constructor order in inheritance30 min
- final methods and final classes25 min
- Your own exception classes30 min
- Common mistakes and practice35 min
- Must-do problems: Inheritance150 min
3.6Polymorphism9 lessons
One method call, many behaviours: override methods safely with @Override and super, use parent references and arrays, and trace how Java picks the method at run time.
- What is polymorphism?25 min
- Method overriding and its rules35 min
- The @Override annotation25 min
- Call the parent's version with super.method()30 min
- Overloading vs overriding28 min
- Parent reference, child object (upcasting)34 min
- Dynamic method dispatch35 min
- Common mistakes and practice40 min
- Must-do problems: Polymorphism140 min
3.7Abstraction & Interfaces10 lessons
Hide how and show what: abstract classes, interfaces, default and static methods, choosing between them, and a first look at lambdas.
- Why abstraction?25 min
- Abstract classes and abstract methods35 min
- Constructors, fields and normal methods in abstract classes30 min
- Interfaces: a contract35 min
- Implement several interfaces30 min
- default, static and private methods in interfaces40 min
- Abstract class or interface? How to choose30 min
- Functional interfaces and lambdas: a first look35 min
- Common mistakes and practice40 min
- Must-do problems: Abstraction and Interfaces120 min
3.8Enums7 lessons
A fixed set of named values: why enums beat int and String constants, built-in methods, switch, constants with data and behaviour, interfaces and state machines.
3.9Composition & Relationships10 lessons
How Java classes relate: IS-A vs HAS-A, association, aggregation, composition and delegation, and how to choose and design them from a real problem.
- HAS-A vs IS-A30 min
- Objects inside objects30 min
- Association: objects that work together35 min
- Aggregation: a whole that shares its parts30 min
- Composition: a whole that owns its parts35 min
- Delegation: let another object do the work35 min
- Composition vs inheritance: choosing35 min
- Design classes from a real problem40 min
- Common mistakes and practice40 min
- Must-do problems: Composition and Relationships150 min
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.
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.
3.12References, Casting & Immutability10 lessons
How Java decides between the reference type and the object type, how to cast safely with instanceof and pattern matching, and how to build immutable classes, records and nested classes.
- Reference type vs object type32 min
- Downcasting and ClassCastException32 min
- instanceof and pattern matching32 min
- Field hiding vs method overriding32 min
- Immutable objects30 min
- Design your own immutable class36 min
- Records: short immutable data classes32 min
- Nested classes: static nested, inner and anonymous36 min
- Common mistakes and practice45 min
- Must-do problems: References, Casting and Immutability120 min
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.
3.14Java OOP Mini Projects9 lessons
Nine GitHub-ready console projects, one for each big OOP idea: classes, encapsulation, inheritance, polymorphism, interfaces, composition, equality, immutability, and a final payroll capstone.
- Student Profile & Marks Report60 min
- Bank Account Manager60 min
- Employee Role Hierarchy60 min
- Payment Processing Engine60 min
- Multi-Channel Notification Service75 min
- Build a Library Management System75 min
- Build a Product & Customer Catalogue60 min
- Build an Immutable Order & Cart70 min
- Capstone: Employee Management & Payroll90 min
