Important notice about the future of Stripcreator (Updated: May 2nd, 2023)

  Rohit  

followers
1
following
0
pm : info
Rohit has not entered a profile.
(hide profiles)

by Rohit
12-14-11
Yes, current solution is violating OCP which says we should be able to extend the functionality by adding new code and not by modifying the existing code.
Hmm.....
What if next problem statement is that the Switch should also be able to control other similar objects like Fan. For that Switch class needs to be modified.
Oh ! why I did not think about that ???
So Now Our new UML Diagram should take care of that.
share: twitter : facebook

« Back to the Front Page