answersLogoWhite

0

Private members of a class are only accessible to the class itself and to friends of the class. Protected members are the same as private members, but are also accessible to derivatives of the class. Public members are fully accessible. Note that protected member variables should be avoided as much as possible, as this can easily undermine the encapsulation of those members.

User Avatar

Wiki User

∙ 13y ago
User Avatar

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 is difference between isolation and reverse isolation?

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


What the difference between Africans and Dominicans people race?

Their Language


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

Neither one of them is a "language translator."