Contents

If a derived class object is created, which constructor is called first?
a) base class constructor        
b) derive class constructor
c) depends on how we call       
d) none of these

a

Which of the following operator used with object to access member function?
a) dot (.)            
b) @                
c) $ 
d) &

a

What is the correct format of accessing object?
a) object. Function[];   
b) object. Function();
c) object. Function{};
d) none of these

b

Access specifiers


Which of the following is used for determining or setting the boundary for the availability of class member?
a) object                                  
b) data members
c) access specifier       
d) parameter

c

How many types of access specifier in OOP?
a) one  
b) two 
c) three
d) four

c

Explanation: private specifier, public specifier, protected specifier