if 6 functions are doing the same thing only on different object
then it should be one function. This is the simple example of reuse. reusable code is also easy to maintain. If any change is needed, you only need to change one place instead 6 places.
所有跟帖:
• 回复:if 6 functions are doing the same thing only on different obj -130131- ♀ (40 bytes) () 11/27/2007 postreply 08:44:22