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

In C++ what is a vtable and how does it work?

0 Answers   Agilent,


What is C++11?

1 Answers   Adobe,


What Is Polymorphism in C++ ?

2 Answers   IBS, Impetus, ITC Indian Tobacco Company, Motorola,


Write a syntax and purpose of switch statement.

0 Answers   Agilent,


Explain the difference between method overriding and method overloading in C++?

0 Answers   Accenture,


How to generate random numbers in C++ with a range?

0 Answers  


What is Boyce Codd Normal form?

0 Answers   IBS,


Write a program to generate the Fibonocci Series in C++.

0 Answers   Accenture,


Difference between Call by pointer and by reference.

0 Answers   Adobe,


What are issues if we mix new and free in C++?

0 Answers  


What are the costs and benefits of using exceptions?

0 Answers   Amazon,


What is placement new?

1 Answers   Amazon,


Categories