This repository represents my Java OOPs (Object-Oriented Programming) learning journey.
I started creating this repository when I was in my 2nd year of college.
Whatever OOPs concepts my sir/teacher taught me in class, I carefully understood them and implemented those concepts using Java.
The main goal of this repository is to learn, practice, and clearly understand OOPs concepts with real Java examples.
- To build a strong foundation in Java
- To understand OOPs concepts deeply
- To practice real implementations
- To revise OOPs concepts anytime easily
Object-Oriented Programming is a programming paradigm based on the concept of objects, which contain data and methods.
A Class is a blueprint of an object.
An Object is a real-world instance of a class.
class Student {
String name;
int age;
void display() {
System.out.println(name + " " + age);
}
}
public class Main {
public static void main(String[] args) {
Student s1 = new Student();
s1.name = "Rahim";
s1.age = 20;
s1.display();
}
}
