The Interface Segregation Principle | miafish
The interface-segregation principle (ISP) states that no client should be forced to depend on methods it does not use.
Work example:
there are worker and super worker, they both eat and work. so the class will be defined like this way.
Read full article from The Interface Segregation Principle | miafish
No comments:
Post a Comment