OOP & Design Patterns - Strategy Pattern - Replace Conditionals with Polymorphism
You have a payment processing system that currently uses multiple
if-else statements to handle different payment methods like credit card, UPI, and net banking. The system needs to be extended frequently with new payment methods without modifying existing code. Which design approach best addresses this requirement?