Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
Assume class B is inherited from class A. Which of the following statements is correct about construction of an object of class B? | |
A. | While creating the object firstly the constructor of will be called followed by constructor of . [Wrong Answer] |
B. | The order of calling constructors depends upon whether constructors in and are or . [Wrong Answer] |
C. | While creating the object firstly the constructor of will be called followed by constructor of . [Correct Answer] |
D. | The constructor of only will be called. [Wrong Answer] |