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

Explain the difference between static and dynamic binding of functions?

1076


What is Destructor in C++?

1201


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

1213


What is while loops?

1062


Is overriding possible in c++?

1020


Explain the difference between new() and malloc() in c++?

1136


What are the new features that iso/ansi c++ has added to original c++ specifications?

1146


Explain stack & heap objects?

1064


What is virtual base class uses?

1368


What are the advantages of using typedef in a program?

1147


What do you mean by a template?

1072


What is do..while loops structure?

1157


Is recursion allowed in inline functions?

1091


Why ctype h is used in c++?

963


Is there any difference between int [] a and int a [] in c++?

1027