📄️ Classes and Objects
Why This File Exists
📄️ Constructor
A constructor in Java is a special block of code that runs when an object of a class is created. Its main function is to initialize the object's state (values of variables and resources) when the object is first made.
📄️ Encapsulation
What Is Encapsulation?
📄️ Abstraction
In Java, the abstract keyword is used to define classes and methods that are incomplete and meant to be implemented later by subclasses. It represents the concept of abstraction, where we hide implementation details and only expose necessary functionality.
📄️ Inheritance + Super
Inheritance in Java allows a "child" (subclass) to acquire fields and methods from a "parent" (superclass) i.e it allows one class to acquire properties and behaviors (fields and methods) from another class. supporting code reuse and extension.
📄️ Polymorphism
Polymorphism means "many forms". It is the ability of a single
📄️ Composition vs Inheritance
Composition vs Inheritance in Java (HAS-A vs IS-A)
📄️ Interface in Java
An interface in Java is a blueprint for a class that defines what
📄️ Abstraction and Interfaces
Abstraction and Interfaces in Java (Designing Contracts, Not Implementations)
📄️ Final , Static Usage
How Java Determines Which Method to Run
📄️ SOLID Principles
SOLID Principles in Java (Design Rules That Prevent Pain)