---
title: "Discussion on \"Public, Private and Protected - Encapsulate Your Code Today!\" | Hashnode"
description: "Discussion on \"Public, Private and Protected - Encapsulate Your Code Today!\". Encapsulation, What Is It and When To Use It?"
url: "https://hashnode.com/posts/public-private-protected/62936dbed97f80b5091db1f3"
---

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

Discussion

# [Public, Private and Protected - Encapsulate Your Code Today!](https://vinven.hashnode.dev/public-private-protected?utm_source=hashnode&utm_medium=feed)

Encapsulation, What Is It and When To Use It?

May 29, 2022 · 5 min read · vinven.hashnode.dev  
Read the article

-   [#oop](https://hashnode.com/tag/oop)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#java](https://hashnode.com/tag/java)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Daniel McPherson](https://hashnode.com/@Vinven)

@Vinven

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
