AMAbhay Mauryainpearlthoughts.hashnode.dev·Mar 3, 2024 · 3 min readObject Oriented Programming in JavaAbstract Classes Sometimes, you want to create a superclass that defines a generalized form shared by all its subclasses, leaving each subclass to fill in the details. This is where abstract classes come in. An abstract class can have abstract method...00
AMAbhay Mauryainpearlthoughts.hashnode.dev·Mar 3, 2024 · 7 min readObject Oriented Programming in JavaAccess Control in Java: Controlling Member Accessibility: Java provides access modifiers (public, private, protected, and default) to control how members (fields and methods) of a class can be accessed. Restricting access to data members promotes ...00
AMAbhay Mauryainpearlthoughts.hashnode.dev·Mar 2, 2024 · 11 min readObject Oriented Programming in JavaThe Pillars of Object-Oriented Programming Object-oriented programming is built on four fundamental principles: encapsulation, inheritance, polymorphism, and abstraction. Each of these principles plays a crucial role in designing modular, reusable, a...00
AMAbhay Mauryainpearlthoughts.hashnode.dev·Feb 28, 2024 · 9 min readObject Oriented Programming in JavaPackages in Java: Definition: Packages are containers for classes, used to keep the class namespace compartmentalized and organized. They prevent naming collisions, allowing you to create classes with common names without conflicts. No two same c...00
AMAbhay Mauryainpearlthoughts.hashnode.dev·Feb 27, 2024 · 10 min readObject Oriented Programming in JavaClasses and Objects: Class: A class is a named group of properties (fields/attributes) and functions (methods). It serves as a template for creating objects. A class creates a new data type that can be used to instantiate objects. It defines the ...00