Answer Posted / hrpynux@gmail.com
You can call a virtual function in a constructor, but be careful. ... In a constructor, the virtual call mechanism is disabled because overriding from derived classes hasn't yet happened. Objects are constructed from the base up, “base before derived”.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is endl c++?
Can you Mention some Application of C/C++?
When would you use a pointer? A reference?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
How new/delete differs from malloc()/free?
What are the general quetions are in DEna bank manager IT/System interviews?
How do you define social class?
What is data binding in c++?
How many times will this loop execute? Explain your answer.
What is the difference between mutex and binary semaphore?
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 type of questions
Write a program to reverse a string using recursive function?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is a forward referencing and when should it be used?