Question OOP-SOLID-0051
MediumWhich design pattern is often used to apply the Open/Closed Principle to algorithms that vary, such as discount rules?
- A.
Prototype
- B.
Strategy
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
SOLID and Design Principles question
Which design pattern is often used to apply the Open/Closed Principle to algorithms that vary, such as discount rules?
Prototype
Strategy
Sign up free to see the answer and a step-by-step explanation.
Facade
Singleton