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
How do you decide which integer type to use?
What is the difference between C and CPP?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What is the difference between reference and pointer?
What is abstract keyword in c++?
What do you mean by early binding?
What is the difference between while and do while loop?
What is object file? How can you access object file?
How do I write a c++ program?
What is #include iomanip?
what is a class? Explain with an example.
Why cout is used in c++?
Why do we need function?
What is the difference between passing by reference and passing a reference?
What is the main purpose of overloading operators?