What is encapsulation?

Packaging an objectís variables within its methods is called encapsulation.

Showing Answers 1 - 10 of 10 Answers

vishnu bobade

  • Sep 8th, 2005
 

Classes in C++ provide static encapsulation of objects, by generating code which contains specific knowledge about the internals of encapsulated objects. Static encapsulation occurs at compile time, and therefore cannot directly support the evolution of objects, since recompilation of source code is required if the internal layout changes. This also prohibits the use of distributed or persistent objects without first ensuring that the internal representations of the objects match the ones in the compiled code

v.chandrasekhar

  • Jan 17th, 2006
 

1.The wrapping up of data and member function into a single unit is called encapsulation.2.The data is not accessible to the outside world and only those functions which are wrapped into a class can access it.

  Was this answer useful?  Yes

priya

  • Mar 5th, 2006
 

the wrapping up of data and functions into a single unit is called as encapsulation.e.g: class friend{ int infinte friends; public: int mysoul();}

dngr_dv

  • Apr 4th, 2006
 

hi,

Binding several related variables and member functions as a single unit is called data encapsulation. This job has been done by "class" keyword.

Thanks....

  Was this answer useful?  Yes

sunil

  • Apr 9th, 2006
 

hi!

Encapsulation means wrapping up of Data and Code...this is what i got from data structures book...

  Was this answer useful?  Yes

jha

  • Dec 16th, 2006
 

According to me encapsulation is the process in which we can collect the data members and functions in one place or we can say that to encapsulate the related things.

  Was this answer useful?  Yes

Ramya

  • Dec 14th, 2011
 

The process of grouping data and its functions into units called as objects paves way for encapsulation.

  Was this answer useful?  Yes

anjala

  • Sep 22nd, 2012
 

encapsulation is the process of wrapping of data member and functions in to a single unit

  Was this answer useful?  Yes

sakshi

  • Oct 4th, 2012
 

The wrapping up of data and code into a single entity is known as encapsulation.It is a way to implement data abstraction

  Was this answer useful?  Yes

Ramya

  • May 31st, 2013
 

OOPs concept that binds the data along with function which manipulates the data.

  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.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions