If private members have to be accessed directly from outside the class but the access specifier must not be changed, what should be done?

Nguyễn Tân

New member
If private members have to be accessed directly from outside the class but the access specifier must not be changed, what should be done?
A. Specifier must be changed
B. Friend function should be used
C. Other public members should be used
D. It is not possible
 

Tìm kiếm

Back
Top