---
title: "#openclosed-principle articles | Hashnode"
description: "Explore 4 articles tagged #openclosed-principle on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/openclosed-principle"
---

Tag

# #openclosed-principle

4 posts · 0 followers

[Gautam Patel](https://hashnode.com/@iamgautam03) · [Sep 28, 2025](https://hashnode.com/posts/open-closed-principle/68d8e898722e5bb12988b125)

### [Have you ever heard SOLID? 🤔 Let's look at 'O : Open-Closed Principle' of it.](https://iamgautam.hashnode.dev/open-closed-principle?utm_source=hashnode&utm_medium=feed)

Learn the Open-Closed Principle (OCP) of SOLID design with simple code examples and a clear analogy.

3 min read · [iamgautam.hashnode.dev](https://iamgautam.hashnode.dev/open-closed-principle?utm_source=hashnode&utm_medium=feed)

[Kawal Jain](https://hashnode.com/@kawaljain) · [May 23, 2025](https://hashnode.com/posts/solid-principles-series-part-2-openclosed-principle-ocp/6830b2beb5555105f7c34048)

### [🚀 SOLID Principles Series – Part 2: Open/Closed Principle (OCP)](https://blog.kawaljain.com/solid-principles-series-part-2-openclosed-principle-ocp?utm_source=hashnode&utm_medium=feed)

Keep Your Code Flexible — Add New Stuff Without Messing Up Old Logic

2 min read · [blog.kawaljain.com](https://blog.kawaljain.com/solid-principles-series-part-2-openclosed-principle-ocp?utm_source=hashnode&utm_medium=feed)

[Mirna De Jesus Cambero](https://hashnode.com/@mirnadjc) · [Apr 7, 2025](https://hashnode.com/posts/modern-java-features-sealed-classes/67f3ed25d5f453ad3728bf2e)

### [Modern Java Features: Sealed Classes](https://codelikeawoman.com/modern-java-features-sealed-classes?utm_source=hashnode&utm_medium=feed)

Sealing a class or interface restricts the list of subclasses or implementations to a predefined set. For example, consider defining a Shape and restricting subclasses to be only triangles and squares. public class SealedClasses { sealed class Sh...

4 min read · [codelikeawoman.com](https://codelikeawoman.com/modern-java-features-sealed-classes?utm_source=hashnode&utm_medium=feed)

[JAIME ELIAS FLORES QUISPE](https://hashnode.com/@Jaimeelias) · [Mar 28, 2025](https://hashnode.com/posts/solid-software-design-applying-the-openclosed-principle-ocp-in-java/67e6d8c3eb2e266310dcafe5)

### [Solid Software Design: Applying the Open/Closed Principle (OCP) in Java](https://jaimeelias.hashnode.dev/solid-software-design-applying-the-openclosed-principle-ocp-in-java?utm_source=hashnode&utm_medium=feed)

Definition The Open/Closed Principle is one of the SOLID principles in software design. It states that a component should be open for extension but closed for modification. This means that we can add new functionalities without altering the existing ...

3 min read · [jaimeelias.hashnode.dev](https://jaimeelias.hashnode.dev/solid-software-design-applying-the-openclosed-principle-ocp-in-java?utm_source=hashnode&utm_medium=feed)

[6](https://hashnode.com/posts/solid-software-design-applying-the-openclosed-principle-ocp-in-java/67e6d8c3eb2e266310dcafe5)
