Skip to content

Desi banjara

  • Microsoft AZ-900 Certification Exam Practice Questions – Part 1 Microsoft AZ-900 Certification Exam
  • Interview question: What is the difference between ref and out parameters? C# development
  • “Twenty years from now you will be more disappointed by the things you didn’t do than by the ones you did do.” – Mark Twain Quotes
  • Interview question: What is the use of “using” keyword in C#? C# development
  • AWS DevOps Engineer Professional Exam Practice Questions – 14 AWS DevOps Engineer Professional Exam
  • AWS DevOps Engineer Professional Exam Practice Questions – 4 AWS DevOps Engineer Professional Exam
  • Interview question: What are the two types of data type in C#? C# development
  • “Pride is holding your head up when everyone around you has theirs bowed. Courage is what makes you do it.” Bryce Courtenay Motivational & Inspirational Quotes

SOLID Design Principles

Posted on September 9, 2018 By DesiBanjara No Comments on SOLID Design Principles

[amazon_textlink asin=’1484227611|1484236394′ text=’SOLID Design Principles’ template=’ProductLink’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’c71be429-b44f-11e8-bcc2-e9178ccb09b7′] are the design principles that enable us developers to manage most of the software design problems. The term SOLID is an acronym for five design principles intended to make software designs more understandable, flexible and maintainable. The principles are a subset of many principles introduced by Robert C. Martin and SOLID acronym was first introduced by Michael Feathers. These principles help developers create and maintain a codebase that is strong but flexible to grow and change with minimal difficulty.

SOLID Acronym
S – Single Responsibility Principle (SRP)

O – Open Closed Principle (OSP)

L – Liskov Substitution Principle (LSP)

I –  Interface Segregation Principle (ISP)

D – Dependency Inversion Principle (DIP)

Single Responsibility Principle

According to Single Responsibility Principle (SRP) “A class should have one, and only one, reason to change.”

Every module or class should have responsibility over a single part of the functionality provided by the software, and that responsibility should be entirely encapsulated by the class.

Open/Closed Principle

“Software entities should be open for extension, but closed for modification”

Software design should be done in a way that new functionality could be added with minimum changes in the existing code. In other words, the design should be done in a way to allow the adding of new functionality as new classes and keeping existing code unchanged as much as possible

Liskov Substitution Principle

This principle is introduced by Barbara Liskov. According to this principle “objects in a program should be replaceable with instances of their sub-types without altering the correctness of that program”. In other words, Derived types must be substitutable for their base types.

If a program module is using a Base class, then the reference to the Base class can be replaced with a Derived class without affecting the functionality of the program module.

Interface Segregation Principle

“Many client-specific interfaces are better than one general-purpose interface.”

We should not enforce clients to implement interfaces that they don’t use. Instead of creating one big interface we can break down it to smaller interfaces

Dependency Inversion Principle

One should “depend upon abstractions, [not] concretions”. Abstractions should not depend on the details whereas the details should depend on abstractions.

High-level modules should not depend on low level modules.

[amazon_link asins=’1484227611,9048143268,1455778818,1509302581,1468489763,0123969840,B07B6R6WC9,1493926616,3319411586′ template=’ProductGrid’ store=’desibanjara22-21′ marketplace=’IN’ link_id=’711b2e58-b450-11e8-a2c9-21db0574c2c3′]

C# development, Interview questions, IT/Software development, Web development Tags:Interview questions, IT/Software development, Software Architecture, Software Design, SOLID Design Principles, Web development

Post navigation

Previous Post: Differences between struct and classes in C# : Interview question
Next Post: Object Oriented Programming (OOP) in C#

Related Posts

  • C# interview Questions – What is struct in C#? C# development
  • C# Interview question: How encapsulation is implemented in C#? C# development
  • Top 20 beginner level C# interview questions C# development
  • Interview question: What is the difference between dynamic type variables and object type variables? C# development
  • Interview question: What is mean by operators in C#? C# development
  • Interview question: What are the two types of data type in C#? C# development

Leave a Reply Cancel reply

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



Archives

  • February 2023
  • February 2022
  • June 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • December 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • January 2018
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • August 2015
  • May 2015
  • April 2014
  • November 2013

Categories

  • Acer
  • Amazon AWS Certification Exam
  • Amazon Kindle
  • Android phones
  • ASP.Net MVC
  • ASP.NET Web API
  • AWS DevOps Engineer Professional Exam
  • AZ-300: Microsoft Azure Architect Technologies Exam
  • Azure Active Directory
  • Azure App Services
  • Azure Data Factory
  • Azure Logic Apps
  • Azure Mobile Apps
  • Azure Virtual Machine
  • Best Wishes Messages
  • birthday messages for boyfriend
  • Birthday messages For Girlfriend
  • Birthday Wishes
  • Birthday Wishes For Mom
  • Business
  • C# development
  • Cameras
  • Canon
  • Cloud
  • Cloud services
  • digital-cameras
  • Diwali
  • Entrepreneurship
  • eReaders
  • Family Quotes
  • Family Quotes
  • Friendship Quotes
  • Gadgets
  • Games
  • Get Well Soon Messages
  • GIT
  • Good Morning Wishes
  • Google
  • Gratitude Quote
  • Guru Nanak Jayanti
  • Halloween
  • Happiness Quote
  • Happy Diwali Wishes
  • Happy Independence Day Wishes
  • Happy New Year Wishes
  • HTC
  • HTC One
  • HTML
  • I Miss You Messages
  • Inspirational Quotes
  • Inspirational Travel Quotes
  • Interview questions
  • IT/Software development
  • Leadership Quote
  • Life lessons
  • Love Quotes
  • Love shayari
  • Messages
  • Microsoft AI-900 Certification Exam
  • Microsoft AZ-104 Certification Exam
  • Microsoft AZ-204 Certification Exam
  • Microsoft AZ-900 Certification Exam
  • Microsoft Azure
  • Microsoft Azure certifications
  • Microsoft Exam AZ-220
  • Microsoft Excel
  • Microsoft Office
  • Microsoft word
  • Mobile phones
  • Motivational & Inspirational Quotes
  • Nature Quotes
  • Nexus
  • Nikon
  • Pixels
  • PL-200: Microsoft Power Platform Functional Consultant Certification
  • PL-900: Microsoft Power Platform Fundamentals
  • postman
  • Quotes
  • Robin Sharma
  • Samsung Galaxy S5
  • Self improvement quotes
  • Self-Confidence Quote
  • SonarQube
  • Sony PlayStation 4
  • SQL
  • SQL Server
  • Success Quotes
  • Travel Quotes
  • Uncategorized
  • Uplifting Quotes
  • WCF (Windows Communication Foundation)
  • Web development
  • Wishes
  • Wishes for Newborn Baby

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org



Recent Posts

  • Azure Data Factory
  • What is Azure Active Directory?
  • Azure Virtual Machine
  • Azure Logic Apps
  • Azure Mobile Apps

Recent Comments

  • Yosianus on Error while sending json model in POST request to web API service using postman
  • Sample Exam Questions 4: AZ-300: Microsoft Azure Architect Technologies AZ-300: Microsoft Azure Architect Technologies Exam
  • “Every adversity, every failure and every heartache carries with it the seed of an equivalent or a greater benefit.”– Napoleon Hill Motivational & Inspirational Quotes
  • “When overseas you learn more about your own country, than you do the place you’re visiting.” – Clint Borgen Quotes
  • Travel Quotes – Life is either a daring adventure or nothing.- Helen Keller Quotes
  • Best Get Well Soon Wishes / Messages Best Wishes Messages
  • “It is not the mountain we conquer, but ourselves.” Sir Edmund Hillary Motivational & Inspirational Quotes
  • Cute & Romantic Good Morning Wishes Good Morning Wishes
  • Microsoft PL-900 Certification Exam Practice Questions – 2 PL-900: Microsoft Power Platform Fundamentals

Copyright © 2023 Desi banjara.

Powered by PressBook News WordPress theme