beginnerSOLID Principles
Single Responsibility Principle — give a bad example and refactored good example.
Tests whether you can actually spot an SRP violation in code and refactor it, not just define the principle.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
Single Responsibility Principle — give a bad example and refactored good example.