Java
Java OOP
Master Object-Oriented Programming in Java by building, testing and analyzing real code.
Module 0
Prerequisites
The Java you need before OOP
Variables, types, if/else, loops, methods and arrays. Short, practical, and only the parts the OOP modules actually depend on.
Module 1
Introduction to OOP
Why objects exist, and what they really are
The problem with procedural code, what an object is, what a class is, and the difference between state and behaviour — with Car, Student, BankAccount and Phone examples.
Module 2
Classes & Objects
Write your own types and bring them to life
Declaring classes, fields and methods, creating objects with new, understanding references, and managing many objects at once.
Module 3
Constructors
No object should be born incomplete
Constructor syntax, the invisible default constructor, parameterised constructors, `this`, overloading and chaining.
Module 4
Encapsulation
Stop trusting everyone with your data
Why public fields are dangerous, how `private` + getters/setters + validation keep an object always valid, and what data hiding buys you.
Module 5
Access Modifiers
Four levels of 'who is allowed in'
public, protected, package-private and private — the full visibility matrix, with practical 'is this access allowed?' drills.
Module 6
Inheritance
Write the shared behaviour once
extends, parent and child classes, what is (and is not) inherited, IS-A vs HAS-A, and the constructor chain with super.
Module 7
Method Overriding
Same call, different behaviour
Redefining an inherited method, the exact rules the compiler enforces, @Override, and why `Animal a = new Dog(); a.sound();` runs the Dog version.
Module 8
Polymorphism
Write code once, let new types plug in
Compile-time vs runtime polymorphism, dynamic method dispatch, the anatomy of `Animal animal = new Dog();`, upcasting, downcasting and instanceof.
Module 9
Method Overloading
One name, several ways to call it
Overloading by number, type and order of parameters, why the return type alone is not enough, and the full overloading vs overriding comparison.
Module 10
Abstraction
Declare what must happen, let each child decide how
Abstract classes and abstract methods: share the code that is common, force every subclass to supply the part that is unique, and make impossible objects impossible to create.
Module 11
Interfaces
Contracts that any class can sign
The interface keyword, implements, interface references and polymorphism, interface constants, multiple interfaces, default/static/private methods, and interface vs abstract class.
Module 12
OOP Relationships
How objects are wired together
IS-A vs HAS-A, association, aggregation and composition with runnable Java, plus the reasoning behind 'favor composition over inheritance'.
Module 13
Final Project: Bank Management System
Every concept, one system, four stages
Build Customer, Account, SavingsAccount, CurrentAccount, Transaction and Bank step by step — each stage adds only concepts you have already mastered.