Please take this interface for creating families or dependant objects without specifying their concrete classes. Abstract factory design pattern
Posts by Year
Let the subclass decide which class to instantiate. Factory method Pattern
Don’t just instantiate a concrete class and use it straight away. You’ll be regretting in the longer term Simple Factory Pattern
Hey. You can’t initialize me, but you can get the only one instance of myself which is shared across your app by asking my static sub-routine. I can help ...
Hey Subject, I would like to register myself to your subscribers list. Please update me too when your state changes. Thank you. Observer class
Writing readable and extendable code is magic. Be a magician. Anonymous (jk. It’s me)