This principle of OOP mainly says that whatever be the code (methods, properties, variables etc.) written to develop an app should be wrapped into a container called as CLASS. This helps in providing security to the code which is lacking in procedural languages.
Eg: class Hello
{
..........; //Encapsulated class content
}
Eg: class Hello
{
..........; //Encapsulated class content
}
2/03/2010 04:26:00 PM |
Category:
OOP in C#
|
