I guess this has a lot to do with it. For me, it looks like a factory method, so a single extension point is allowed. Secondly, all this in your constructor is not the best practice, especially when you do a lot of things during initialization. Yes, your question seems reasonable, I even agree with it, however, from the point of view of the design of the object, it is more practical, like it.
Sincerely, Marius S. ( c_marius@msn.com )
Marius constantinescu
source
share