Answer to Question #213922 in C++ for Ali Haider

Question #213922

a)    Can we declare base class constructor or destructor as virtual if yes then why we want to do?



1
Expert's answer
2021-07-05T14:14:08-0400

A  base class constructor cannot be declared as virtual.

A  base class destructor can be declared as virtual. Virtual makes sure the destructor starts at the top instead of the middle


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS