---
title: "How many types of encapsulation in OOP concept?"  
description: "How many types of encapsulation in OOP concept?"  
author: "Royce Roy"  
published: 2013-06-12  
updated: 2013-06-12  
canonical: https://www.mindstick.com/forum/1049/how-many-types-of-encapsulation-in-oop-concept  
category: "oops"  
tags: ["oops"]  
reading_time: 2 minutes  

---

# How many types of encapsulation in OOP concept?

What are the different types of [encapsulation](https://www.mindstick.com/articles/12229/encapsulation-and-access-specifier)?

Am I right in [thinking](https://www.mindstick.com/blog/11889/how-to-change-your-thinking-paradigm) this basically refers to central OOP [concepts](https://www.mindstick.com/articles/13127/macro-and-microeconomics-concepts-in-relation-to-global-organization-management) such as [Abstraction](https://www.mindstick.com/articles/944/abstraction-in-c-sharp), [Polymorphism](https://www.mindstick.com/articles/1827/objective-c-polymorphism) and [Inheritance](https://www.mindstick.com/articles/13095/inheritance-and-its-types)?

My [understanding](https://www.mindstick.com/articles/12918/cat-5e-vs-cat-6a-understanding-the-major-differences) of encapsulation is that it is a method of hiding data / [functionality](https://www.mindstick.com/blog/136/using-watermark-functionality-in-textbox-by-jquery), but I never really considered Polymorphism or Inheritance a form of encapsulation, although I can see how polymorphism could be considered encapsulation as it can hide the exact type of the object you are interacting with.

So, would you say that's about it, or am I missing some core concepts?

edit I just noticed in the [comments](https://www.mindstick.com/news/2328/deadline-for-comments-on-the-draught-indian-telecommunication-bill-is-extended-by-the-dot) someone mentioned it could refer to private / public methods, perhaps I'm thinking in to the [question](https://www.mindstick.com/blog/23175/how-to-solve-neet-question-paper-in-less-time) too much and expecting a more complicated answer than it really is?

## Replies

### Reply by Vijay Shukla

Hello Royce Roy!\
Encapsulation is defined by the International Organisation for Standardization's International Standard: "Information technology – Open Distributed Processing," ISO/IEC 10746, 1998.\
\
It's defined in terms of more primitive definitions:\
\
Entity: Any concrete or abstract thing of interest.\
\
Object: A model of an entity. An object is characterised by its behaviour and, dually, by its state.\
\
Behaviour (of an object): A collection of actions with a set of constraints on when they may occur.\
\
Interface: An abstraction of the behaviour of an object that consists of a subset of the interactions of that object together with a set of constraints on when they may occur.\
\
Encapsulation: the property that the information contained in an object is accessible only through interactions at the interfaces supported by the object.\
\
The ISO does not define different types of encapsulation.\
\
Read this link to more knowledge for Encapsulation


---

Original Source: https://www.mindstick.com/forum/1049/how-many-types-of-encapsulation-in-oop-concept

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
