Gonzalo Ayuso came across a situation where he needed to create a factory method inside of multiple classes but didn't want to have to create them each time.
With class inheritance there had to be another way.
I have built a backend library.
I have a tree of classes and i want to use singleton and factory patterns to my class set. Easy isn't it?
[...] Now imagine you have a lot of classes. You must create...
Post new comment