Category: design-patterns

Is this a good or a bad practice to use parent construct method on each child? [closed]

I am trying to create a Widget service. I have Widget class and his his children: ContactWidget, TestimonialWidget etc. They are depend from TemplateService and from User class. So using OOP features i can do it this way: Class Widget…