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?
Tell me about virtual function
What is name mangling/name decoration?
Find the Factorial of a number using a program.
Define namespace.
Question on Copy constructor.
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++?
What is Advantage and Use of THIS pointer in C++ – Scenarios?
Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.
What is the difference between an ARRAY and a LIST in C++?
How does free know the size of memory to be deleted
what is a pragma in C++?