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

Why do we use vector in c++?

1127


What does catch(…) mean?

1174


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1114


What is time_t c++?

1206


What is buffer and example?

1092


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

2473


Difference between an inspector and a mutator

1393


What is the need of a destructor? Explain with the help of an example.

1093


What do you mean by global variables?

1124


What are c++ files?

1196


What is meant by entry controlled loop? What all C++ loops are exit controlled?

1149


What do manipulators do?

1069


Explain deep copy and a shallow copy?

1123


What is type of 'this' pointer?

1120


Where the memory to the static variables is allocated?

1106