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
What is name mangling/name decoration?
What is pass by value & reference.
What are string library functions(syntax).
Find the Factorial of a number using a program.
How can you force the compiler to not generate them?
Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?
What are the advantages/disadvantages of using #define?
What kind of problems does name mangling cause?
What do you know about Volatile keyword in C++? Explain with an example code.
Is there a difference between class and struct?
How will you print a list of all unique words from a string which may contain repeated words?
Write a C++ program to print strings in reverse order.