+ 2

What do u mean by public and private members??

22nd Jan 2017, 6:08 AM
P.Sai Sumanth
P.Sai Sumanth - avatar
5 Réponses
+ 2
private members has access to exclusive content, services or products than public members.
22nd Jan 2017, 6:12 AM
Juan Carlos Luna Hernandez
Juan Carlos Luna Hernandez - avatar
+ 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)
23rd Jan 2017, 5:18 PM
Juan Carlos Luna Hernandez
Juan Carlos Luna Hernandez - avatar
0
can I have an example
22nd Jan 2017, 6:18 AM
P.Sai Sumanth
P.Sai Sumanth - avatar
0
@juan carlos
22nd Jan 2017, 6:19 AM
P.Sai Sumanth
P.Sai Sumanth - avatar
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
26th Mar 2017, 7:24 PM
Logan New
Logan New - avatar