https://github.com/areebactech/object-oriented-programming
This repository contains my Object-Oriented Programming (OOP) in Java practice. It covers key OOP concepts like Encapsulation, Abstraction, Inheritance, and Polymorphism with hands-on coding examples.
https://github.com/areebactech/object-oriented-programming
abstraction encapsulation inheritence java polymorphism
Last synced: 11 months ago
JSON representation
This repository contains my Object-Oriented Programming (OOP) in Java practice. It covers key OOP concepts like Encapsulation, Abstraction, Inheritance, and Polymorphism with hands-on coding examples.
- Host: GitHub
- URL: https://github.com/areebactech/object-oriented-programming
- Owner: areebactech
- License: other
- Created: 2025-03-16T05:43:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-27T15:23:18.000Z (over 1 year ago)
- Last Synced: 2025-03-27T16:28:04.508Z (over 1 year ago)
- Topics: abstraction, encapsulation, inheritence, java, polymorphism
- Language: Java
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Object-Oriented Programming in Java
## 🌟 Introduction
This project demonstrates **Object-Oriented Programming (OOP) in Java**!
🚀 It includes examples of key OOP concepts like **classes, objects, inheritance, and polymorphism** with simple implementations.
## 📌 What This Project Covers
✅ **Classes & Objects** – Creating and using objects
✅ **Encapsulation** – Protecting data with getters and setters
✅ **Inheritance** – Establishing parent-child relationships
✅ **Polymorphism** – Implementing method overloading & overriding
✅ **Basic Exception Handling** – Managing errors in Java
## 🛠️ Project Details
I have written Java programs to demonstrate the following:
- **Encapsulation**: Using private fields and public methods
- **Inheritance**: Creating subclasses that inherit properties
- **Polymorphism**: Implementing method overloading and overriding
- **Exception Handling**: Handling errors properly in Java
## 🏗️ Project Structure
📂 **src/** – Contains Java files for OOP concepts:
- `Example.java` (Basic OOP concepts)
- `Encapsulation.java`
- `Inheritance.java`
- `Polymorphism.java`
## 🔎 Notes
📝 This project serves as a **learning exercise**.
💡 The code is simple and beginner-friendly, making it easy to understand OOP concepts.
## 📬 Contact
For any questions, feel free to check out my GitHub: [areebactech](https://github.com/areebactech) 🚀