Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

In Object-Oriented Design, the principle that software entities should be open for extension but closed for modification is the:

ALiskov Substitution Principle (LSP)
BOpen-Closed Principle (OCP)
CDependency Inversion Principle (DIP)
DSingle Responsibility Principle (SRP)

Explanation

OCP encourages designing components whose behavior can be extended via interfaces without changing source code.

Submitted by: mcqstutor Team More Software Engineering MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *