Skip to content

This project is a comprehensive Java-based implementation that demonstrates all four core Object-Oriented Programming (OOP) principles — Encapsulation, Inheritance, Polymorphism, and Abstraction — through real-world inspired examples and clean modular structure.

License

Notifications You must be signed in to change notification settings

AbiAyshwariya/Object_Oriented_Programming_using_Java

Repository files navigation

Object_Oriented_Programming_using_Java

This project is a comprehensive Java-based implementation that demonstrates all four core Object-Oriented Programming (OOP) principles — Encapsulation, Inheritance, Polymorphism, and Abstraction — through real-world inspired examples and clean modular structure.

Java OOPS Concepts 🚀

This project demonstrates all four core Object-Oriented Programming principles in Java through clean, real-world-inspired examples:

  • ✅ Encapsulation

  • ✅ Inheritance

  • ✅ Polymorphism (Compile-time & Runtime)

  • ✅ Abstraction (Abstract Classes & Interfaces)

  • 🎯 Key Concepts

Concept Topics Demonstrated
Encapsulation Private fields, getter/setter methods, controlled access
Inheritance Base/derived classes, constructor chaining, method reuse
Polymorphism Method overriding, runtime resolution, superclass references
Abstraction Interfaces, abstract classes, loose coupling, modular design

⚙️ How to Run

  1. Compile all Java files

'''bash javac src/OOPS///*.java'''


🧠 What You’ll Learn How to use interfaces and abstract classes to create flexible designs How to override methods and achieve runtime polymorphism How access modifiers work and why encapsulation matters How composition is more powerful than inheritance in real-world systems

💻 Requirements Java 8 or above

Terminal / IDE (VS Code, IntelliJ)

👤 Author Ayshu S Java | Machine Learning | OOPS Enthusiast 🌸


You can paste this directly into your README.md file on GitHub. Let me know if you want a ready .md file or want to add profile badge, GitHub stats, or demo GIF later 😎💻

About

This project is a comprehensive Java-based implementation that demonstrates all four core Object-Oriented Programming (OOP) principles — Encapsulation, Inheritance, Polymorphism, and Abstraction — through real-world inspired examples and clean modular structure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages