Home > DeveloperSection > Interviews > Explain the Encapsulation principle.

Posted on    March-23-2011 3:38 AM

 OOPS OOPS 
Ratings:
 1 Answer(s)
  1377  View(s)
Rate this:

Anoop Singh
Anoop Singh

Total Post:37

Points:185
Posted on    March-23-2011 12:00 AM

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. 

Don't want to miss updates? Please click the below button!

Follow MindStick