#2 Open Close Principle ['O' in SOLID]
OCP – Open/Close PrincipleThe Open/Close Principle is the second principle in the Solid Design Principle. Software entities should be open for extension but closed for modification. Today Will discuss about discount calculator system. Violating OCP: enum DiscountType { case seasonal...