Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Answer Posted / maddy

Data Encapsulation is the process of combining data and
functions into a single unit called class. By this method
one cannot access the data directly. Data is accessible
only through the functions present inside the class. Thus
Data Encapsulation gave rise to the important concept of
data hiding.

Example:

public class class1
{
void role1();
void role3();
}

class1 c=new class1();
c.role1();
c.role3();

---
dotnetpages.blogspot.com

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can malloc be used in c++?

1082


What is the oldest programming language?

1017


What are the uses of static class data?

1187


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1251


What is the difference between structure and class?

1280


What is the full name of logo?

1124


What are the general quetions are in DEna bank manager IT/System interviews?

2022


Explain the extern storage classes in c++.

1051


Why should you learn c++?

1026


What is the benefit of learning c++?

993


Difference between struct and class in terms of access modifier.

1195


How is c++ used in the real world?

1039


How long will it take to learn programming?

1064


What are advantages of using friend classes?

1077


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1072