GeekInterview.com
Series: Subject: Topic:
Question: 328 of 338

What is encapsulation?

Packaging an objectís variables within its methods is called encapsulation.
Asked by: Interview Candidate | Asked on: Sep 8th, 2005
Showing Answers 1 - 10 of 10 Answers
vishnu bobade

Answered On : 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

Yes  1 User has rated as useful.
  
Login to rate this answer.
v.chandrasekhar

Answered On : 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.

  
Login to rate this answer.
priya

Answered On : 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();}

Yes  1 User has rated as useful.
  
Login to rate this answer.
dngr_dv

Answered On : Apr 4th, 2006

View all answers by dngr_dv

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....

  
Login to rate this answer.
sunil

Answered On : Apr 9th, 2006

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

  
Login to rate this answer.
jha

Answered On : 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.

  
Login to rate this answer.
Ramya

Answered On : Dec 14th, 2011

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

  
Login to rate this answer.
anjala

Answered On : Sep 22nd, 2012

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

  
Login to rate this answer.
sakshi

Answered On : 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

  
Login to rate this answer.
Ramya

Answered On : May 31st, 2013

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

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.