Class A
{
int i1;
protected :
int i2;
public :
int i3;
}
class B : public A
{
public :
int i4;
};
class C :B
{
};
The variable i2 is accessible
A. | to a public function in class A |
B. | to a public function in cIa s s B |
C. | to a public function in class C |
D. | from the main function |
Answer : C Explanation : |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |