315 views
0 votes
0 votes
Assume that we have constructor functions for both base class and derived class.

Now consider the declaration in main( ).

Base * P = New Derived;

in what sequence will the contructor be called ?

(A) Derived class constructor followed by Base class constructor

(B) Base class constructor followed by derived class constructor

(C) Base class constructor will not be called

(D) Derived class constructor will not be called

Please log in or register to answer this question.

Related questions

3 votes
3 votes
3 answers
2
shikharV asked Jan 3, 2016
1,511 views
Given answer is 101 but I am getting 35. Please check.
2 votes
2 votes
1 answer
3
sh!va asked Aug 10, 2016
15,144 views
If class A is friend of class B and if class B is friend of class C, which of the following is true?a. Class C is friend of class Ab. Class A is friend of class Cc. Class...
0 votes
0 votes
0 answers
4
Sanjay Sharma asked Jul 20, 2018
1,340 views
From a given tautology, another tautology can be derived by interchanging.A). 0 and 1B) And and ORC) 0 and 1; And and ORD) Impossible to derive