---
title: "Discussion on \"2. Open-Closed in [S.O.L.I.D] Principles.\" | Hashnode"
description: "Discussion on \"2. Open-Closed in [S.O.L.I.D] Principles.\". In this series, I will explain the five rules of S.O.L.I.D principles in detail So, your code will be readable, maintainable, and testable."
url: "https://hashnode.com/posts/2-open-closed-in-solid-principles/61ebe2905fbc177f9f3b4345"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [2\. Open-Closed in \[S.O.L.I.D\] Principles.](https://ameenblog.hashnode.dev/2-open-closed-in-solid-principles?utm_source=hashnode&utm_medium=feed)

In this series, I will explain the five rules of S.O.L.I.D principles in detail So, your code will be readable, maintainable, and testable.

Jan 22, 2022 · 2 min read · ameenblog.hashnode.dev  
Updated Feb 1, 2022  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#kotlin-beginner](https://hashnode.com/tag/kotlin-beginner)
-   [#solid-principles](https://hashnode.com/tag/solid-principles)
-   [#clean-code](https://hashnode.com/tag/clean-code)

## Written by

[Ameen Essa](https://hashnode.com/@AmeenEssa)

@AmeenEssa · Egypt

  
[View profile](https://hashnode.com/@AmeenEssa)

Android Developer 📱

## Responses 3

Markdown supported · ⌘↵ to post

[Suleiman Hesham](https://hashnode.com/@Suleiman99)

[Jan 26, 2022](https://hashnode.com/posts/2-open-closed-in-solid-principles/61ebe2905fbc177f9f3b4345/comment/61f1dbebe247b2151e6224b5)

pretty explanation, thanks for ur efforts

[Mohamed Abd El-Moniem](https://hashnode.com/@MMoniem)

[Jan 24, 2022](https://hashnode.com/posts/2-open-closed-in-solid-principles/61ebe2905fbc177f9f3b4345/comment/61eeaa05c99aed184e7271e3)

Perfect start, keep going ♥

[Ahmed Ramy](https://hashnode.com/@aramy)

[Jan 24, 2022](https://hashnode.com/posts/2-open-closed-in-solid-principles/61ebe2905fbc177f9f3b4345/comment/61ee7c0be247b2151e61bf37)

Nice work, you can also test your saving as a unit and as an integration in Unit tests by mocking the protocol and inject the protocol to the depending class
