Git Product home page Git Product logo

solid_principles's Introduction

SOLID_Principles

Table of contents:

Concept:

SOLID is an acronym that represents a set of five principles of object-oriented design that aim to improve code quality, making it easier to maintain and extend. The five principles are Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, Dependency Inversion Principle.

SOLID Principles:

Single Responsibility Principle:

A class should have only one responsibility. This means that each class should have only one reason to change and only one task or responsibility within the system.

Open-Closed Principle:

A class should be open for extension but closed for modification. This means that the behavior of the class can be extended without modifying its original source code.

Liskov Substitution Principle:

Subtypes should be substitutable for their base types. This means that derived classes should be able to be used anywhere their base classes are used.

Interface Segregation Principle:

A class should not be forced to implement interfaces and methods that are not used. This means that interfaces should be specific and cohesive, and classes should implement only the methods necessary for their operation.

solid_principles's People

Contributors

sarawalid99 avatar

Stargazers

Mahmoud Abo-Zied avatar  avatar Hüsam avatar Mostafa El Hawary avatar Omar Badr avatar Esraa Mabrouk avatar Osama Maher avatar Ibrahim Khaild avatar ismail sokar avatar Ahmed elattar avatar  avatar Mohamed Ahmed Reyad avatar Ahmed Mabrouk Said avatar Riya Bhandari avatar

Watchers

Hassan Mohamed Kamel avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.