+ 2
What do u mean by public and private members??
5 odpowiedzi
+ 2
private members has access to exclusive content, services or products than public members.
+ 1
an example is spotify; public members can listen random streamed music, but private members can select tracks to listen and also download it for play offline (without internet)
0
can I have an example
0
@juan carlos
0
public access variables can be accessed from anywhere in the program by way of objectName.publicVariable and subclasses inherit all public variables in the base class
private access variables can only be accessed in the class and are NOT inherited
there are also protected access variables whose definition is different in every language, but in C++ are like
private variables except that they are inherited by the subclass