SOLID design principles

This brings us to another interesting concept in OOP called SOLID design principles. These design principles apply to any OOP design and are intended to make software easier to understand, more flexible, and easily maintainable.

The term SOLID is a mnemonic for:

  • Single responsibility principle
  • Open/closed principle
  • Liskov substitution principle
  • Interface segregation principle
  • Dependency inversion principle

In this chapter, we will only take a look at the first two principles—the single responsibility principle and the open/closed principle. Let's look at the single responsibility principle next.

Get C# 7 and .NET Core 2.0 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.