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?
In C++ what is a vtable and how does it work?
What is C++11?
What Is Polymorphism in C++ ?
2 Answers IBS, Impetus, ITC Indian Tobacco Company, Motorola,
Write a syntax and purpose of switch statement.
Explain the difference between method overriding and method overloading in C++?
How to generate random numbers in C++ with a range?
What is Boyce Codd Normal form?
Write a program to generate the Fibonocci Series in C++.
Difference between Call by pointer and by reference.
What are issues if we mix new and free in C++?
What are the costs and benefits of using exceptions?
What is placement new?