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 are the four partitions in which c++ compiler divides the ram?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What is istream and ostream in c++?
When should we use multiple inheritance?
Define virtual constructor.
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
If I is an integer variable, which is faster ++i or i++?
What is extern c++?
Does std endl flush?
Describe protected access specifiers?
How can an improvement in the quality of software be done by try/catch/throw?
What happens when the extern "c" char func (char*,waste) executes?
How to declare a pointer to an array of integers?
Differentiate between structure and class in c++.
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?