How to construct virtual constructor
Answer Posted / richa
Constructors can't be virtual in C++.It is an error.The
destructors on the other hand can be virtual.
| Is This Answer Correct ? | 29 Yes | 4 No |
Post New Answer View All Answers
What is the use of "new" operator?
How is data hiding achieved in c++?
Do you know the problem with overriding functions?
Is swift faster than c++?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Do you know what are pure virtual functions?
Who created c++?
Does c++ cost money?
what do you mean by volatile variable?
Can you Mention some Application of C/C++?
What are arithmetic operators?
Discussion on error handling of C++ .
What is encapsulation in C++? Give an example.
What would happen on forgetting [], while deallocating an array through new?
Define anonymous class.