面向对象设计原则之开闭原则

开闭原则的定义Software entities like classes,modules and functions should be open for extension but closed for modifications.