Software Development, Java, Interview.
that it should only have one reason to be modified. This principle encourages smaller, more focused classes, which are easier to understand, test, and maintain. 2. Open/Closed Principle (OCP): Software entities (classes, modules, functions, etc.) should be open for extension but closed for