___________ is a design principle in OOP that states a class should have only one reason to change.
- Encapsulation
- Inheritance
- Polymorphism
- Single Responsibility Principle
The correct option is Single Responsibility Principle. This principle suggests that a class should have only one job or reason to change, leading to more modular, maintainable, and understandable code.
Loading...
Related Quiz
- In Agile development, user stories are typically written in the format of "As a ___________, I want to ___________, so that ___________."
- The ___________ operation in queues removes an element from the front without returning it.
- The Agile practice of estimating the effort required for each user story or task is known as _________.
- You're tasked with optimizing resource utilization in a virtualized environment. How would you leverage container orchestration tools to achieve this goal?
- Which operation in strings is used to concatenate two strings?