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 is the difference between public, private, protected
inheritance?

Answer Posted / girish kumar

publc: variable declare in public can be access anywhere in the program i.e. other classes can also use same variable which are declare once.
private:variable declare in private can't be access outside the class in which it is declare .Variable are only access in the same class.

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the copy constructor called?

1093


Why is polymorphism useful?

1028


How are pointers type-cast?

1069


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2296


What is atoi in c++?

1026


What are different types of loops in c++?

1082


What is a storage class? Mention the storage classes in c++.

984


What is the use of namespace std in C++?

1022


What are activex and ole?

1015


What is an undefined behavior and sequence points

964


How do you generate a random number in c++?

1038


Which is the best c++ compiler for beginners?

1033


Explain the isa and hasa class relationships. How would you implement each?

1075


what Is DCS ? what i will get benefit when i did?

2313


Which of the following is evaluated first: a) && b) || c) !

2318