Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Select true option for A friend function

  Shared By: Maria Hughes    Date: Nov 03    Category: C++ Programming    Views: 1459

Answer:

A friend function

I. Can be invoked similar to other functions without using objects
II. Cannot access to other member functions directly
III. Cannot be called using the object of the class to which it has been declared as friend
IV. Can be declared only in the public part of a class

Options

a) I, II and III
b) I, II and IV
c) I, II, III and IV
d) IV only

Answer : c) I, II, III and IV

Share: 
 

Didn't find what you were looking for? Find more on Select true option for A friend function Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: