Contents

The process of declaring member function in derive class with the same name and signature as in the parent class in known as……
a) function overriding     
b) overloading
c) redefinition                      
d) overwriting

a

When is the derive class constructor called relative to the base class constructor?
a) they are called together                
b) depends on kind of derivation
c) derive class constructor first                         
d) base class constructor first

d

What is normally the first step in defining a constructor for a derived class?
a) instantiate object of base class  
b) list the members of base class
c) initialize the member of base class
d) none of these

a

From the main function the public function of base class can be seen through an object of derived class under
a) all derivations 
b) private derivations
c) protected derivations                                     
d) public derivations

d

When deriving a class, you should…….
a) list only base class functions      
b) list all member functions
c) both a & b                       
d) none of these

a

Given a class A that derived from class B that derived from class C, when an object of class A goes out of scope, in which order the destructor called……
a) C, B, A                             
b) A, B, C
c) B, A, C                              
d) undetermined

a