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
C++ Public access specifier instead of Private – What is bad ?
How do you work around them?
What are the advantages and disadvantages of B-star trees over Binary trees?
what is friend function in C++?
How do you write a function that can reverse a linked-list in C++?
When would you use a pointer? A reference?
What are the advantages/disadvantages of using #define?
Explain what happens when an exception is thrown in C++.
Write a C++ Program to Find Sum and Average of n numbers using for loop.
Is there a difference between class and struct?
write a program To generate the Fibonacci Series.
What does it mean to declare a function or variable as static?