C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






What is Encapsulation?


Posted Date: 07 Sep 2008    Resource Type: Definitions    Category: General

Posted By: Initiotech       Member Level: Gold
Rating:     Points: 5



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




Responses

Author: mahendrakiran    31 Oct 2008Member 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


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Encapsulation  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: css
Previous Resource: What is Polymorphism
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing services

Contact Us    Privacy Policy    Terms Of Use