Saturday, May 11, 2013

What is considered 'too much' logic in a class constructor?

OK,


Imagine the case described below.


Let us say a new developer is on board. And he adds few new values to your enumeration "Mode", which you are still not aware of. And then, someone passes Mode.Mode6 to your constructor.


What will happen now?


Viral.




MCTS - WPF, WinForms, Sql Server 2008


No comments:

Post a Comment