OOPortal
Search
SiteMap
RationalDB
Database Design
Building C++ Classes
Corba Fundamentals
Corba Java Programming
Designing Reusable Code
Programming C++
Reusable Code
Ad Hoc Polymorphism
Operator Overloading
Friend functions
1.
A friend function declaration:
A.
gives nonmember functions access to hidden class members
B.
is another term for an overloaded function within a class
C.
is any function created for you by the compiler (such as a default constructor)
D.
is any function outside the class with the same name as a function in the class
2.
A
friend
function declaration appears:
A.
in the header of the
friend
function outside the class
B.
inside the class declaration to which it is a
friend
C.
as a separate declaration inside
main()
D.
anywhere prior to the function invocation
Score =
Correct answers:
Explanation