Runtime polymorphism is achieved only when a virtual function is accessed through a ____ to the base class.
Correct Answer: Pointer
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C++ Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C++ MCQ Questions
Which operator is used to allocate memory?
Which storage classes are supported in C++?
The stream ‘cout’ is by default connected to console output ___.
Which members are not accessed by using the direct member access operator?
Copy constructor must receive its arguments by ___?
Which function cannot be overloaded?
Destructor calls are made in which order of the corresponding constructor calls?
Which of the following is used to create an object by initializing it with an object of the same class that has been created previously?
Which is NOT provided by the compiler by default?
What is the output of the following code? #include using namespace std; void func(int x) { cout << x ; } int main(int argc, const char * argv[]) { void (*n)(int); n = &func; (*n)( 5 ); n( 8 ); return 0; }