advancedSOLID Principles in Practice

What happens when a child class compiles fine but returns unexpected results compared to its parent contract?

Tests whether you know this is a Liskov Substitution violation even without a compile error — the contract broke silently.

This is a Pro question

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

What happens when a child class compiles fine but returns unexpected results compared to its parent contract?

Next Step

Continue to What problems do 'fat interfaces' create in large systems, and how would you split one without breaking existing consumers?← Back to all Spring Boot & Microservices questions