Single Responsibility Principle
Everything on SkillVeris tagged Single Responsibility Principle — collected across the glossary, study notes, blog, and cheat sheets.
6 resources across 1 library
Interview Questions(6)
What is Coupling and Cohesion in OOP?
Coupling measures how dependent one module or class is on another, while cohesion measures how strongly the responsibilities inside a single module belong toge…
What is the Single Responsibility Principle?
The Single Responsibility Principle states that a class should have only one reason to change, meaning it should own exactly one well-defined responsibility ra…
Explain SOLID Principles with Real-World Examples
SOLID is a set of five object-oriented design principles — Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inver…
What is the God Object Anti-Pattern?
A God Object is a class that has grown to know or do far too much — it centralizes unrelated state and behavior from across the system, violating the single re…
High Cohesion vs Low Cohesion
High cohesion means a class or module has a single, well-defined responsibility with all of its methods and fields working together toward that one purpose, wh…
What is the Extract Method Refactoring?
Extract Method is the refactoring technique of taking a fragment of code from a larger method and moving it into its own well-named method, then calling that n…