There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?
No Answer is Posted For this Question
Be the First to Post Answer
How do you write a function that can reverse a linked-list in C++?
What is Copy Constructor?
Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.
Write a program to read two numbers from the keyboard and display the larger value on the screen
Briefly explain various access specifiers in C++.
What is the meaning of the following declaration: int *const *const *i?
Explain about Searching and sorting algorithms with complexities
What is Advantage and Use of THIS pointer in C++ – Scenarios?
Is there a difference between class and struct?
Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
Write a C++ Program to Reverse a Number using while loop.
Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }