1.  Given class sample is inherited by class sample 1. Which are the correct statements about construction of object of class sample ?


While creating the object firstly the constructor of class sample will be called followed by constructor of class sample 1
The constructor of only sample class will be called
While creating the object firstly constructor of class sample 1 will be called followed by constructor of class sample
The order of calling constructors depend on whether constructors in class sample and sample 1 are private or public


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  Which of these keywords is used to refer to member of base class from a sub class?


upper
base
this
None of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  In Inheritance concept, which of the following members of base class are accessible to derived class members ?


static
protected
private
shared


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  In an inheritance chain through which of following, the base class and its components are accessible to the derived class ?


Scope resolution operator(:)
Class visibilty modifiers (public,private etc.)
Dot operator (.)
All of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  A class member declared protected becomes member of subclass of which type ?


public member
private member
protected member
static member


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report