closed by
357 views
0 votes
0 votes
70. 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
constructor 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
closed by

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
1 answer
2
anonymous asked Apr 2, 2018
410 views
If I allocate the memory using new operator to member in constructor I.e dynamic constructor than should I have to write delete in destructor
0 votes
0 votes
0 answers
3
kd..... asked Mar 31, 2018
391 views
if we call the constructor than did the constructor will implicitly calls the new operator to allocate memory and it is from the heap area?