I have written a program using OO and found that its not as versatile as I would like. Changes are difficult as there are a lot of dependencies. So I have decided to re-write the program and in doing so, I have been doing some research into current practices. I see new things like factory methods, dependency injection, inheritance, extension, implementation and interfaces.
There are lots of examples online for each of the patterns I mentioned but what I need is a template, outlining how they should be used in conjunction with each other. My program will need to use listeners and shared resources such as Lists. I have found trouble in learning how I should structure my program around a shared resource.
Can anyone point me to a basic template for structured programming, demonstrating how these sorts of patterns, should be used in conjunction with each other?
Thank you in advance and I hope I didn't just sound too dumb. XD...
What I have tried:
I searched the internet and also posted on StackOverflow which got me banned for not asking the correct way.