Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

. What is Open/closed design principle in Software engineering?

Pragya Keshap answered on February 10, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • open-closed principle
  • Open-Closed Principle
  • What is the Open closed design principle in Java?
  • What do you understand by the Open-Closed Principle (OCP)?
  • SOLD Open Closed Principle
  • Open-Closed Principle (OCP):

  • . What is Open/closed design principle in Software engineering?

    0

    Open/closed design principle states “software entities (classes,

    modules, functions, etc.) should be open for extension, but closed

    for modification”.

    Open/closed principle term was originated by Bertrand Meyer in

    his book Object Oriented Software Construction.

    As per this principle, if a module is available for extension then it

    is considered open. If a module is available for use by other

    modules then it is considered closed.

    Further Robert C. Martin has mentioned it as O in SOLID principles

    of Object Oriented design.

    It is used in State and Strategy design patterns. Context class is

    closed for modification. But new functionality can be added by

    writing new strategy code

    https://www.baeldung.com/java-open-closed-principle#:~:text=As%20the%20name%20suggests%2C%20this,be%20extended%2C%20but%20not%20modified.

    Popularity 3/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.