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

Can turbo c++ run c program?

1098


What is abstract class in c++?

1051


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

1183


What is a vector c++?

1176


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1156


Can we define a constructor as virtual in c++?

1126


What is the type of 'this' pointer?

1019


What is fixed in c++?

1039


What are static member functions?

1120


Which function cannot be overloaded c++?

1113


Why do we use classes in c++?

1062


What do you mean by const correctness?

1088


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

3008


What are structs in c++?

1034


What is function declaration in c++ with example?

1099