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

What are the types of pointer?

1088


How can you quickly find the number of elements stored in a static array?

1087


When do we run a shell in the unix system?

1070


Is std :: string immutable?

1030


What is meaning of in c++?

1209


What is enum class in c++?

1241


What is a local variable?

1080


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

2018


What is the difference between a pointer and a link in c ++?

1046


How do you define a class in c++?

1078


Does c++ support multilevel and multiple inheritances?

1005


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1153


What is purpose of abstract class?

1070


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

1047


What gives the current position of the put pointer?

995