What is meant by encapsulation ? Explain with an example

Showing Answers 1 - 26 of 26 Answers

vinod

  • Jun 27th, 2005
 

wrapping up of code and data is called encapsulation. 
 

  Was this answer useful?  Yes

reena sahoo

  • Sep 1st, 2005
 

java program contains 2 elements code and dat. so the mechanism that binds data and code together is Encapsulation. which is also called information hiding or protecting. Encapsulation is used to hide the implementation behind interface(API).

  Was this answer useful?  Yes

saurabh

  • Sep 15th, 2011
 

Encapsulation means whole program is combined into single unit.

  Was this answer useful?  Yes

Anil

  • Oct 27th, 2011
 

Binding of data and methods into a single unit is called encapsulation. This concept is useful for hiding the data.

  Was this answer useful?  Yes

sonam sharma

  • Oct 27th, 2011
 

wrapping up of data and methods in a single unit is known as encapsulation.

  Was this answer useful?  Yes

nagendra

  • Dec 17th, 2011
 

Binding of data and methods into a single unit is called encapsulation.

  Was this answer useful?  Yes

priyanka

  • Feb 11th, 2012
 

Protective wrapper that prevents the code and data from being arbitrarily accessed by the other code defined outside the wrapper.

  Was this answer useful?  Yes

lakshun

  • May 8th, 2015
 

datahiding + abstraction= Encapusaltion

  Was this answer useful?  Yes

sumit

  • Jul 5th, 2015
 

Encapsulation: The Wrapping up of data and method into a single unit is known as encapsulation. We can also say that hiding data behind method is known as encapsulation.

Encapsulation means also: Data hiding+Abstraction.

The main advantage of Encapsulation is to provide security and improve maintainability of code. Without effecting outside the maintainability is possible only with its internal implementation.

  Was this answer useful?  Yes

Ruchi

  • Jul 10th, 2015
 

Encapsulation means binding code and data members in to a single unit.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions