intermediateSOLID Principles in LLD

OCP: How do you extend a PaymentProcessor to add UPI without modifying existing code?

Tests whether you can apply the Open/Closed Principle to a realistic scenario, not just quote its definition.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

OCP: How do you extend a PaymentProcessor to add UPI without modifying existing code?

Next Step

Continue to LSP: Give a classic violation example (Rectangle-Square problem) and how to fix it.← Back to all Design Patterns & LLD questions