Top "Solid-principles" questions

SOLID is an acronym for five principles of object-oriented design introduced or documented by Robert C. Martin.

What is an example of the Liskov Substitution Principle?

I have heard that the Liskov Substitution Principle (LSP) is a fundamental principle of object oriented design. What is it …

oop definition solid-principles design-principles liskov-substitution-principle
Can you explain Liskov Substitution Principle with a good C# example?

Can you explain Liskov Substitution Principle (The 'L' of SOLID) with a good C# example covering all aspects of the …

c# .net oop solid-principles liskov-substitution-principle
What is an example of the Single Responsibility Principle?

Can someone give me an example of the Single Responsibility Principle? I am trying to understand what it means, in …

oop definition solid-principles single-responsibility-principle design-principles
Refactoring if-else if - else

I have the following code example if(object.Time > 0 && <= 499) { rate = .75m } else if(object.Time >= 500 &…

c# design-patterns if-statement refactoring solid-principles
Learning Single Responsibility Principle with C#

I am trying to learn the Single Responsibility Principle (SRP) but it is being quite difficult as I am having …

c# solid-principles single-responsibility-principle
Writing JavaScript according to SOLID

Have any one used the SOLID programming principle (or any of it's parts) while developing JavaScript? I've just started up …

javascript solid-principles
Can anyone provide an example of the Liskov Substitution Principle (LSP) using Vehicles?

The Liskov Substitution Principle states that a subtype should be substitutable for that type (without altering the correctness of the …

oop solid-principles liskov-substitution-principle
Can't seem to understand SOLID principles and design patterns

I'm trying to get into OOP lately, and I'm having trouble with SOLID principles and design patterns. I see why …

oop design-patterns solid-principles