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

What are signs of manipulation?

1013


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?

2288


Explain linked list using c++ with an example?

1021


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1015


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

1107


What is a try block?

1030


How would perform Pattern Matching in C++?

1172


What does I ++ mean in c++?

1034


Why do we use setw in c++?

1055


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

1003


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1006


What is class and structure in c++?

1080


How does code-bloating occur in c++?

1134


Is c++ harder than java?

1003


What is a lambda function c++?

1031