answersLogoWhite

0

In C++, the private specifier means that the item can only be accessed by methods of the class, not including methods of derived classes. Protected, on the other hand, means the item can be accessed by methods of the class, and methods of derived classes. Public, to complete the explanation, means that the item can be acessed by any method, this class, another class, or otherwise.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the difference between access specifier and access modifier?

An access modifier is another name for an access specifier, which in object-orientated software is a keyword applied to a variable which indicates which other parts of the programme are permitted to access it.


Explain the significance of public and protected and private access specifiers in inheritance?

These are all access modifiers in Java. a. Public - these are accessible anywhere. This is the least restrictive access specifier. b. Private - these are accessible only inside the declaring class. This is the most restrictive access specifier. c. Protected - these are in between public and private. These are accessible to all classes that inherit this class d. Package - this is the default access specifier. These are accessible to all classes that are present in the same package as the contained class.


WHAT IS THE DIFFERENCE BETWEEN LANGUAGE AND COMMUNICATION I NEED RARE ANSWERS ONLY?

what is the difference between speech,language and communication??There is a huge difference between language and communication


What is the difference between a baloch and brohi?

there is between language


What are the differences between urdu and English language?

wht is the basic difference between English language with urdu language


How do you tell the difference between National and Provincial parks?

There is no real difference but National parks are operated and protected by the Canada's parks while Provincial parks are operated and protected by the provinces that they are in.


Difference between procedural and nonprocedural language?

Non.


What is one difference between Austria and Switzerland?

Language.


What are the difference between Spanish and English subjects?

Language.


What the difference between Africans and Dominicans people race?

Their Language


What is difference between isolation and reverse isolation?

in regular you are isolated regularly, but in protective you are protected


What are the difference between ms-dos and unix as a language translator?

Neither one of them is a "language translator."