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...

What are the differences between public, private, and
protected access?

Answer Posted / kalpana.y


Private is used for intialization of variables
eg:
int p,r;
public is used for function name
eg:
void display();
protected is used for void main()

eg:
void main()
class c;

Is This Answer Correct ?    24 Yes 86 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is python better than c++?

1087


Describe linked list using C++ with an example.

1124


Can char be a number c++?

1104


What is vector pair in c++?

1265


Describe exception handling concept with an example?

1097


How do you decide which integer type to use?

1052


What is the sequence of destruction of local objects?

1023


What is the protected keyword used for?

1168


Write about the use of the virtual destructor?

1062


Is rust better than c++?

1171


What is #include iostream in c++?

1109


Write a program to find the Factorial of a number

1119


What is the difference between #define debug 0 and #undef debug?

1241


Why namespace is used in c++?

1118


How the virtual functions maintain the call up?

1286