r/learnjava • u/SadCar1494 • Oct 30 '26
OOP DESIGN
I've been learning Java for about a month now. So far I've covered OOP principles, Java Collections, and I'm planning to dive deeper into exception handling next.
However, one area where I still struggle is OOP design and structuring. I understand concepts like inheritance, encapsulation, abstraction, and polymorphism, but when it comes to applying them in actual projects, I often find myself struggling to distribute them properly among classes.
No matter how many classes I create to separate different parts of the logic, I eventually end up with at least one class containing too many methods and responsibilities.
What are the best practices, concepts, or design principles I should study to improve my OOP design skills? How can I develop the ability to identify when a class is doing too much, decide when to create new classes, and structure a Java application in a clean, maintainable, and scalable way?
View all comments
Show parent comment
1
u/SadCar1494 Oct 30 '26
https://github.com/sabinparajuli774-code/BankManagemntSystem
This is what I was talking about. The program does run and I am able to do what I wanted i.e. deposit the money, withdraw, transfer, and add the history, but it is all cluttered in a single class of Menu.