Skip to content

Conversation

@SURYANSHUAGRAWAL2006
Copy link

Overview

This pull request adds a new oops package demonstrating the four core Object-Oriented Programming (OOP) principles:

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism

Details

  • Added clean, modular Java classes under the package com.thealgorithms.oops.
  • Each concept is implemented with a simple, easy-to-understand real-world example.
  • Followed Java conventions and TheAlgorithms project structure.
  • All files compile and run successfully.

Why This Is Useful

This contribution helps learners understand OOP fundamentals through simple, executable code.
It aligns with the repository’s educational goal of providing clear algorithmic and programming examples.

Files Added

  • AbstractionDemo.java
  • EncapsulationDemo.java
  • InheritanceDemo.java
  • PolymorphismDemo.java

Notes

All classes are independent and demonstrate their respective OOP principles.
Each example is concise, readable, and tested locally.

@SURYANSHUAGRAWAL2006
Copy link
Author

Hi maintainers,
I have added Java examples for core OOP concepts in the new oops package. Please review this PR when convenient. Participating via Hacktoberfest. Thanks for your time.

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

This pull request has been automatically closed because its workflows or checks failed and it has been inactive for more than 14 days. Please fix the workflows and reopen if you'd like to continue. Merging from main/master alone does not count as activity.

@github-actions github-actions bot closed this Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants