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
How do you work around them?
Factory Method C++ – How to delete pointers returned by it
How does stack look in function calls? Write a recursive function call, how will the stack look like?
what is friend function in C++?
Write a C++ Program to Display Number (Entered by the User).
Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.
How to convert integer to string in C++
What is an algorithm (in terms of the STL/C++ standard library)?
Explain encapsulation in C++.
What is a class in C++?
1 Answers Amazon, TCS, UGC Corporation,
What is function overloading and operator overloading in C++?
What's the value of the expression 5["abxdef"]?