Skip to content

Instantly share code, notes, and snippets.

View A10-g's full-sized avatar
🎯
Focusing

Abhishek Gupta A10-g

🎯
Focusing
View GitHub Profile
@A10-g
A10-g / gist:b3ff4717ec6324b7ef2c4234d7dad517
Created September 13, 2023 18:23
Java Code Snippet gist
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
@A10-g
A10-g / gist:66d4ae66e43391505b36ec6a3014a124
Created September 13, 2023 18:20
Software Develpment gist
Object-oriented programming (OOP) is based on several key principles, often referred to as the "four pillars of OOP." These pillars are fundamental concepts that guide the design and implementation of object-oriented software. The four pillars of OOP are:
1. **Encapsulation:** Encapsulation is the concept of bundling data (attributes or properties) and methods (functions or procedures) that operate on that data into a single unit called an object. It hides the internal details of an object and exposes only the necessary interfaces to interact with it. This helps in controlling access to an object's data and ensuring data integrity.
2. **Abstraction:** Abstraction is the process of simplifying complex systems by modeling them with abstract representations. In OOP, classes and objects provide a way to create abstract data types. Abstraction allows you to focus on the essential properties and behaviors of objects while ignoring the irrelevant details. It promotes the idea of defining a class with a clear inter