📄️ OOP in Java
- Object-Oriented Programming (OOP) is a way of designing and writing software by modeling real-world entities as objects.
📄️ Classes in Java
- A class in Java is a blueprint or template for creating objects.
📄️ Object in Java
- An object is an instance of a class.
📄️ Variables in Java
- In Java, variables are used to store data.
📄️ Constructors in Java
A constructor in Java is a special method that is used to initialize objects.
📄️ Static Method in Java
- A static method is a method that belongs to the class itself, not to any specific instance of the class.
📄️ Instance Method in Java
- An instance method is a method that belongs to an instance of a class.
📄️ Inheritance in Java
- Inheritance is a mechanism in Java where a new class, known as the subclass (or derived class), is derived from an existing class, known as the superclass (or base class).
📄️ Polymorphism in Java
- Polymorphism in Java allows one interface to be used for a general class of actions.
📄️ Encapsulation in Java
- Encapsulation is the mechanism of restricting direct access to some of the object's components and only allowing access through certain methods.
📄️ Abstraction in Java
- Abstraction is the process of hiding the implementation details and showing only the functionality to the user.
📄️ Interfaces in Java
- An interface in Java is a reference type, similar to a class, that can contain only constants, method signatures, default methods, static methods, and nested types.
📄️ Object Class in Java
- In the realm of Java programming, the Object class holds a special place, it's the root of the class hierarchy, and every class in Java implicitly inherits from it.