Java icon indicating copy to clipboard operation
Java copied to clipboard

adding oop's concept

Open PavanKuppili opened this issue 1 year ago • 14 comments

What would you like to share?

this git repo have almost all related to algorithms i would like to add a folder with programs related to Java OOP's concept

Additional information

No response

PavanKuppili avatar Oct 07 '25 11:10 PavanKuppili

I would love to work on this i hope you will assign me

ramanuj-droid avatar Oct 07 '25 19:10 ramanuj-droid

Hello @PavanKuppili,

This is an interesting idea. OOP is a core part of Java, and examples could be very helpful for learners.

To help the maintainers better understand the proposal, could you suggest some specific examples of the programs you have in mind? For instance, which OOP concepts would you focus on? (e.g., Inheritance, Polymorphism, Encapsulation, Abstraction)

Perhaps instead of a general folder, we could demonstrate these concepts through a small, self-contained example that fits the repository's structure. For example, a classic demonstration of Polymorphism could be a Shape interface with Circle, Rectangle, and Triangle classes, each with its own calculateArea() method.

This would provide a very clear and focused example for the repository. What are your thoughts on starting with a specific, concrete example like that?

Best regards.

avadhutmali avatar Oct 08 '25 06:10 avadhutmali

hey @avadhutmali . you are right that here is what i thought oops is a main concept of java. so with dsa let us include a folder with oops more specifically from basic to advance like i have few programs that implement concepts like inheritance, method over loading, constructors and some other programs work with run time arguments and method over loading etc.. the solution should be in way like scenario based or some classic demonstration as you said.

I hope you under stand what I'm trying to say. thankyou.

best regards, pavan kuppili.

PavanKuppili avatar Oct 08 '25 06:10 PavanKuppili

That's a great plan, @PavanKuppili! I'm glad we're on the same page. A dedicated folder with clear, classic demonstrations of OOP concepts will be a fantastic addition to the repository.

To get us started, how about this for a plan:

I will create the first Pull Request. It will establish the new folder structure (e.g., oops/) and add the classic Shape example we discussed. This will be a great demonstration of Abstraction (with a Shape interface/abstract class) and Polymorphism (with Circle and Rectangle classes).

You can create the next Pull Request. Once the first one is merged, you can add your excellent examples for Inheritance, Constructors, and Method Overloading.

This way, we can build the section step-by-step with clean, focused contributions.

If this sounds good to you, we can ask the maintainers to assign the issue to both of us. What do you think?

(cc: Maintainers)

avadhutmali avatar Oct 08 '25 13:10 avadhutmali

Yes @avadhutmali . That sound great lets work to gather i raised this issue only because I'm not sure that OOp's is allowed or not because most of the problems are on DSA i guess. Anyway lets work together as you said.

PavanKuppili avatar Oct 08 '25 15:10 PavanKuppili

Hey @avadhutmali @PavanKuppili , would it be okay if I also contribute to that specific folder? I’d love to add some scenario-based examples and possibly improve some of the existing solutions where I can.

RingkhangBTY avatar Oct 08 '25 17:10 RingkhangBTY

RingkhangBTY If this Idea get Approved By Maintainer we can start

avadhutmali avatar Oct 09 '25 05:10 avadhutmali

@avadhutmali Sounds good! Let me know what the Maintainer says, and I'll be ready to contribute.

RingkhangBTY avatar Oct 09 '25 17:10 RingkhangBTY

@avadhutmali guys i am also interested to contribute one folder

shiva-kantamneni avatar Oct 10 '25 06:10 shiva-kantamneni

Hi, I would like to work on this enhancement.

I can implement the "Rat in a Maze" algorithm using a backtracking approach. I will also be sure to include comprehensive unit tests that cover various scenarios, including mazes with no solution.

@maintainers, please let me know if you can assign this issue to me. Thank you!

shubhojeet2107 avatar Oct 12 '25 08:10 shubhojeet2107

Is this issue solved?

khushiporia1211 avatar Feb 22 '26 10:02 khushiporia1211

Is this issue solved?

Gyan987 avatar Mar 12 '26 10:03 Gyan987

Hi @PavanKuppili

This is a really interesting idea. I’d like to contribute by adding some clean and scenario-based examples for core OOP concepts like inheritance, polymorphism, and encapsulation in Java.

Before starting, I just wanted to confirm if this idea has been approved by the maintainers, and whether contributions in this direction are currently encouraged.

I’d be happy to start with a small, focused example once confirmed. Looking forward to your guidance. Thanks!

prashantpiyush1111 avatar Apr 14 '26 08:04 prashantpiyush1111

This repository is focused on algorithms and data structures, so adding a folder for general OOP concepts would be out of scope. Such examples are more suited for educational or tutorial-based repositories rather than this one. I recommend aligning contributions with algorithmic implementations or data structure improvements instead. @PavanKuppili @avadhutmali @RingkhangBTY @shubhojeet2107 @shiva-kantamneni

DenizAltunkapan avatar Apr 17 '26 19:04 DenizAltunkapan