Can we call a virtual function from a constructor?
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 |
Define type casting in C++.
What is a virtual base class?
explain the term 'resource acquisition is initialization'?
Explain the difference between method overriding and method overloading in C++?
What are "pure virtual" functions?
0 Answers Adobe, Alter, iNautix,
Write a C++ Program to Find Sum and Average of three numbers.
Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.
Write a C++ Program to Find Sum and Average of n numbers using for loop.
Write a program that ask for user input from 5 to 9 then calculate the average
How to run C++ program in cmd
Describe the different styles of function prototypes in C++.
Consider the following C++ program