What is SOLID Principle in OOPS

 Single Responsibility Principle states that every object should only have one reason to change, i.e. every object should perform one thing only.

Open-Closed Principle states that classes should be open for extension and closed for modification.

Liskov Substitution Principle states that you should be able to use a derived class in place of a parent class and it must behave in the same manner.

 Interface Segregation Principle states that clients should not be forced to depend on interfaces they  do not use.

Dependency Inversion Principle helps to decouple your code by ensuring that you depend on abstractions rather than concrete implementations.

Comments

Popular posts from this blog

Explain what is routing in MVC? What are the three segments for routing important?

What is the difference between “HTML.TextBox” vs “HTML.TextBoxFor”?

Explain what is the difference between View and Partial View?