Encapsulation is the term given to the process of hiding all the details of an object that do not contribute to its essential characteristics.
So if we want any property of an object (constants, variables, functions, or procedures) to be available to others, we just have to set it as a "Public" property (usually done using the "Public" keyword before the declaration).And if we don't want it to Available, we set it as "Private".
Encapsulation is an advantage because as the programming goes on, we don't have to worry about the same variable, function, or procedure's name within the whole program. Every object has its own properties, and can only be accessed if it was allowed.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Regards Hefin Dsouza
|
| Author: mahendrakiran 31 Oct 2008 | Member Level: Gold Points : 1 |
Encapsulation is the process of defining an application and all of its dependencies, then locating them under one physical and isolated folder or entity
|