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 linked list in c++?
Is c++ the hardest programming language?
Why are pointers used?
How the keyword struct is different from the keyword class in c++?
What is the use of turbo c++?
What is the difference between an array and a list?
Can we specify variable field width in a scanf() format string? If possible how?
Does c++ have a hash table?
When does a 'this' pointer get created?
What do you mean by stack unwinding in c++?
Are c and c++ different?
What is virtual function? Explain with an example
What is a .lib file in c++?
What is difference between n and endl in c++?
What is the difference between method overloading and method overriding in c++?