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 the difference between public, private, and protected inheritance?

0 Answers   Amazon,


What is the meaning of the following declaration: int *const *const *i?

0 Answers   Adobe,


When must you use a constructor initializer list?

0 Answers   Amazon,


Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69

2 Answers  


What is static variable and difference between(const char *p,char const *p,const char* const p).

0 Answers   Accenture,






Find the Factorial of a number using a program.

0 Answers   Accenture,


What is placement new?

1 Answers   Amazon,


What is latest update of C++ ?

0 Answers   Adobe,


Tell How To Check Whether A Linked List Is Circular ?

1 Answers   IBS, Infosys,


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

0 Answers   IBS,


CDPATH shell variable is in(c-shell)

0 Answers   Siemens,


explain the term 'resource acquisition is initialization'?

0 Answers   Amazon,


Categories