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 can a C function be called in a C++ program?

0 Answers  


What is the difference between Stack and Queue in C++?

0 Answers   Global Logic, iNautix,


What are the advantages/disadvantages of using inline and const?

0 Answers   Amazon,


Factory Method C++ – How to delete pointers returned by it

0 Answers  


How can you force the compiler to not generate them?

0 Answers   Amazon,


What are the advantages and disadvantages of B-star trees over Binary trees?

0 Answers  


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.

0 Answers   Adobe,


Explain the operator overloading feature in C++ ?

0 Answers  


How to run C++ program in cmd

0 Answers  


Write a C++ Program to Find Sum and Average of three numbers.

1 Answers  


Difference between function overloading and function overriding.

0 Answers   Alter,


What is C++11?

1 Answers   Adobe,


Categories