I want to have a nonmember function to have access to the private members of a class. The class must declare that function a
a) friend
b) inline
c) static
d) None of the above nonmember functions cannot have the access described here.
a) If a class declares a functions to be a friend, it is granting access to the
private members (it already has access to the public members.)
You might also like to view...
You cannot change the number format of the vertical axis
Indicate whether the statement is true or false
The Break statement is the only way to prevent the rest of the code from being performed.
Answer the following statement true (T) or false (F)
The gap in ease of access to the Internet and technology is known as the ________ divide.
A. web B. Internet C. digital D. technology
The type of a switch statement’s condition must be ____-compatible.
A. decimal B. integer C. object D. string