C++ Access Control Question:
Download Questions PDF

In any ways, Non-member function cannot have access to the private data of the class.

a. True
b. False

C++ Access Control Interview Question
C++ Access Control Interview Question

Answer:

b. False

Download C++ Access Control Interview Questions And Answers PDF

Previous QuestionNext Question
If an argument to a function is declared as const, then

a. function can modify the argument
b. Function can't modify the argument
c. const argument to a function is not possible
d. None of these
Function overloading can also be achieved if two or more functions differ only in their return types.

a. True
b. False