Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply SOLID principle at Door code example #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 11, 2022

  1. Apply SOLID principle at Door code example

    Many examples on the internet of software engineering didn't apply
    the SOLID principle correctly. Considering the Doors could be made
    in many kinds of materials, it sounds more like an Abstract class.
    
    The changes there introduced will be explained over the SOLID
    principle:
    * A Measurable Interface is a behavior expected for all objects which
    have dimensions, fitting to the Interface Segregation Principle.
    * Abstract Door has dimensions and requires a material to be built.
    It is a requirement for the Single Responsibility Principle.
    * Wooden Door is the concrete implementation over Door abstraction
    where defines its material and dimensions. This is an example of the
    Open/Close Principle.
    tonicospinelli committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    0ffbd73 View commit details
    Browse the repository at this point in the history