Skip to content

mdnaim2004/Java_OOPs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☕ Java OOPs Concepts – Learning & Implementation

📌 About This Repository

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.


🎯 Why This Repository?

  • 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 (OOPs)

Object-Oriented Programming is a programming paradigm based on the concept of objects, which contain data and methods.


1️⃣ Class & Object

A Class is a blueprint of an object.
An Object is a real-world instance of a class.

📘 Diagram

Class and Object Diagram

💻 Example Code

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();
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages