https://github.com/codesbyprafful/inheritance-based-programs
This repository contains Java Object-Oriented Programming (OOP) concepts, including inheritance, abstraction, interfaces, and polymorphism. It serves as a learning resource for students and developers who want to understand OOP principles through practical examples.
https://github.com/codesbyprafful/inheritance-based-programs
hierarchical-inheritance inheritance interface
Last synced: about 1 year ago
JSON representation
This repository contains Java Object-Oriented Programming (OOP) concepts, including inheritance, abstraction, interfaces, and polymorphism. It serves as a learning resource for students and developers who want to understand OOP principles through practical examples.
- Host: GitHub
- URL: https://github.com/codesbyprafful/inheritance-based-programs
- Owner: CodesByPrafful
- Created: 2025-04-04T07:53:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-04T08:45:22.000Z (about 1 year ago)
- Last Synced: 2025-04-04T09:22:50.075Z (about 1 year ago)
- Topics: hierarchical-inheritance, inheritance, interface
- Language: Java
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
INHERITANCE BASED PROGRAMS REPOSITORY:
📌 Overview:
This repository contains Java programs demonstrating Object-Oriented Programming (OOP) concepts, including inheritance, interfaces, polymorphism, and abstraction.
Each program showcases an essential OOP principle through practical implementations.
📂 Programs Included:
🔹 Area of Circle
Calculates the area of a circle using a coordinate-based approach.
Demonstrates inheritance and method overriding.
🔹 Employee Salary
Simulates an employee salary system with overtime calculations.
Implements inheritance where a subclass extends a base employee class.
🔹 Factorial Sum
Computes the factorial sum of numbers using recursion.
🔹 Hierarchical Inheritance
Demonstrates Hierarchical Inheritance, where multiple subclasses (Circ, Rectangle) implement a common interface (Shape).
Showcases polymorphism with different implementations of the area() method.
🔹 Interface
Implements Java Interfaces to achieve abstraction and multiple class implementations.
🔹 Product and Sales
Simulates a product sales system with tax and profit calculations.
Demonstrates inheritance and method overriding for computational methods.
🚀 How to Run the Programs:
1️⃣ Clone this repository using:
git clone https://github.com/CodesByPrafful/INHERITANCE-BASED-PROGRAMS.git
2️⃣ Navigate to the repository folder:
cd Java-OOP-Concepts
3️⃣ Compile and run the desired program:
javac ProgramName.java
java ProgramName
🎯 Learning Outcomes:
✅ Understanding inheritance, polymorphism, abstraction, and interfaces.
✅ Implementing real-world OOP concepts in Java.
✅ Strengthening Java programming skills with structured examples.
🤝 Contributing:
To contribute to this repository, fork it, make your changes, and create a pull request.
For any queries, email: praffulshikhar53@gmail.com
📜 License:
This repository is open-source and available under the MIT License.
📌 Author: CodesByPrafful
🔗 GitHub: https://github.com/CodesByPrafful