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

What Is A Default Constructor in C++ ?

0 Answers   Amazon,


Write a C++ Program to Find whether given Number is Odd or Even.

1 Answers  


Explain function prototypes in C++.

0 Answers   Aricent,


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

0 Answers   IBS,


Can we call C++ OOPS? and Why

0 Answers  






Explain about Searching and sorting algorithms with complexities

0 Answers   Accenture,


What are string library functions(syntax).

0 Answers   Accenture,


If class D is derived from a base class B

0 Answers  


What is bool in C++

0 Answers  


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

0 Answers  


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

0 Answers   Agilent,


Explain the operator overloading feature in C++ ?

0 Answers  


Categories