Why is it so that we can have virtual constructors but we
cannot have virtual destructors?
Answers were Sorted based on User's Feedback
Answer / sachinmundhra
vptr gets initialize in constructor. So in that case we
cannot have virtual constructor.
Is This Answer Correct ? | 5 Yes | 0 No |
what are the uses of C++
polymorphism means?
how to find the correct email address format by using the programe?
Can we create object of abstract class?
How many human genes are polymorphic?
Why do we use inheritance?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
What is difference between inheritance and polymorphism?
what is the drawback of classical methods in oops?
What is and I oop mean?
what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....
You attempt to query the data base with this command: SELECT name, salary FROM employee WHERE salary=(SELECT salary FROM employee WHERE last name='Wagner' OR dept no=233) Choose most appropriate option from the following: 1)Sub-queries are not allowed in the where clause. 2)a multiple row sub-query used with a single row comparison operator. 3)a single row query is used with a multiple row comparison operator.