How to construct virtual constructor
Answer Posted / vishwa
there is no need to use vitual constructors in C++.
because the construction of the class tree will be happened
from the base class to child class.
| Is This Answer Correct ? | 9 Yes | 9 No |
Post New Answer View All Answers
How would you implement a substr() function that extracts a sub string from a given string?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What does it mean to declare a member function as static?
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
What are the two main components of c++?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
What is ctime c++?
What is c++ iterator?
What is string in c++ programming?
What would happen on forgetting [], while deallocating an array through new?
How do you differentiate between overloading the prefix and postfix increments?
What is c++ code?
Distinguish between new and malloc and delete and free().
What is the difference between the functions rand(), random(), srand() and randomize()?