C++ Access Control Question: Download Questions PDF
Which of the followings is/are not false about friend function ?
1. It can be called / invoked with class object
2. It has objects as arguments
3. It can have built-in types as arguments
4. It must declared only in public part of a class
5. It does not have this pointer as an argument
a. Only 2,4
b. Only 1,2,5
c. Only 2,3,5
d. All of these
Answer:
c. Only 2,3,5
Download C++ Access Control Interview Questions And Answers
PDF
Previous Question | Next Question |
Default values for a function are need to be specified from left to right only. a. True b. False | Explain access specifier private? |