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

Post New Answer

More C++ Interview Questions

How do you write a function that can reverse a linked-list in C++?

0 Answers   IBS,


What is Copy Constructor?

5 Answers   ABC, Siemens,


Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

0 Answers   Adobe,


Write a program to read two numbers from the keyboard and display the larger value on the screen

1 Answers  


Briefly explain various access specifiers in C++.

0 Answers   Amdocs,






What is the meaning of the following declaration: int *const *const *i?

0 Answers   Adobe,


Explain about Searching and sorting algorithms with complexities

0 Answers   Accenture,


What is Advantage and Use of THIS pointer in C++ – Scenarios?

0 Answers  


Is there a difference between class and struct?

0 Answers  


Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.

1 Answers  


Write a C++ Program to Reverse a Number using while loop.

1 Answers  


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"; }

1 Answers  


Categories