---
title: "Discussion on \"Encapsulation\" | Hashnode"
description: "Discussion on \"Encapsulation\". Encapsulation enhances data hiding, code integrity in OOP. Python uses double underscore (private) and single underscore (protected) conventions"
url: "https://hashnode.com/posts/encapsulation/64a1bece8db091c401035bcd"
---

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

Discussion

# [Encapsulation](https://bitsnotion.com/encapsulation?utm_source=hashnode&utm_medium=feed)

Encapsulation enhances data hiding, code integrity in OOP. Python uses double underscore (private) and single underscore (protected) conventions

May 22, 2023 · 2 min read · bitsnotion.com  
Updated Jul 21, 2023  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#encapsulation](https://hashnode.com/tag/encapsulation)
-   [#protected-member](https://hashnode.com/tag/protected-member)
-   [#private-member](https://hashnode.com/tag/private-member)

## Written by

[Nirmal Pandey](https://hashnode.com/@bitsnotion)

@bitsnotion · Nepal

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

Aspiring Data Scientist @ Python Developer

👋 Hi there, I am Nirmal. I am a former software engineer with a keen interest in data science and analytics domains. Besides, I love to contribute to open source and help others to understand various tech stuffs.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
