Professional Documents
Culture Documents
Time 45 Minutes
1.
2.
3.
4.
5.
6.
7.
class A
{
friend f()
{
...............
...............
}
};
how can i access the function f() if object of class A is a:A.
B.
C.
D.
A.f();
f();
a.f();
we cant access the friend function outside the
class.
8.
9.
class A
{
public:
int f(int a,int b)
{
//body
}
int f(int a)
{
//body
}
int f(int a,float b)
{
//body
}
};
In class A the function f() is _______ for three times.
A.
B.
overloaded
overrided
10.
11.
12.
13.
14.
15.
16.
A. Destructor
B. Constructor
C. Function
D. Variable
17.
18.
19.
20.
21.
22.
23.
24.
25.