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

Tell me about virtual function

1 Answers  


What is name mangling/name decoration?

0 Answers   Amazon,


Find the Factorial of a number using a program.

0 Answers   Accenture,


Define namespace.

1 Answers  


Question on Copy constructor.

0 Answers   Alter,


What Is Polymorphism in C++ ?

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


What does it mean to declare a member function as virtual in C++?

0 Answers   Amazon,


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

0 Answers  


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

0 Answers   Adobe,


What is the difference between an ARRAY and a LIST in C++?

1 Answers   IBS, TCS,


How does free know the size of memory to be deleted

0 Answers  


what is a pragma in C++?

0 Answers   Aspire,


Categories