Null 2
Null 2
PT.0.
B) Answer the following : [5 x 1 = 5]
i) List the different access specifier.
ii) What is Encapsulation?
ii) List the types of Inheritance.
iv) What is the purpose of fstream class?
V) What is the purpose of Scope Resolution Operator?
int a, b;
public :
A)
a =0;
b= 0;
A (int x, int y)
a = x;
b= y:
void display()
main ()
A a;
Statement 1
Statement 2
[6058|-401 2
How many number of Member function does the code contain.
Write statement 1 to call Parameterized constructor.
iii) Write statement 2 to call display function.
int z = 50:
cout << "value of z is" <<::z;
cout << "value of zis" <<z:
# include (iostream. h)
Class A
public :
A ()
Cout <K "In class A":
Class B : public A
public :
B()
~B ()
int main(0
B b;
return 0;
[6058|-401 4