---
title: "Explain the Encapsulation principle."  
description: "Explain the Encapsulation principle."  
author: "Anoop Singh"  
published: 2011-03-23  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/591/explain-the-encapsulation-principle  
category: "oops"  
tags: ["oops"]  
reading_time: 1 minute  

---

# Explain the Encapsulation principle.

Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper. \

## Answers

### Answer by Anoop Singh

Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper. \


---

Original Source: https://www.mindstick.com/interview/591/explain-the-encapsulation-principle

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
