An open API service indexing awesome lists of open source software.

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.

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