/solid-principles

SOLID principles examples

Primary LanguageJava

SOLID principles

This repository contains some examples for each SOLID principle, they are:

  1. Single responsibility principle: Numbers and Strings utilities.
  2. Open / Closed principle: Inheritance and framework approaches.
  3. Liskov substitution principle: Example with lists and concrete classes.
  4. Interface segregation principle: Different animals and behaviors.
  5. Dependency inversion principle: How to build services.