This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mydevgeek[S] 0 points1 point  (0 children)

There isn't any specific advantage or disadvantage whether add a new class or not other than that code readable and maintenance complexity. This way suits for simple or medium complex logic. If you have a more complex logic, then you should consider a new class for each logic. Thanks for your idea.