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

What apps are written in c++?

1031


Does improper inheritance have a potential to wreck a project?

1086


Can recursive program be written in C++?

1182


Why we use #include iostream in c++?

990


What is the sequence of destruction of local objects?

922


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

1065


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2450


Are c and c++ different?

935


Explain differences between new() and delete()?

1050


What are shallow and deep copies?

1069


Can you explicitly call a destructor on a local variable?

978


Why struct is used in c++?

1067


When should you use global variables?

1148


Is there a c++ certification?

992


Explain the use of virtual destructor?

1025