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 kind of problems does name mangling cause?
What is a virtual function in C++?
CDPATH shell variable is in(c-shell)
C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.
When would you use a pointer? A reference?
Tell us the size of a float variable.
What is meant by exit controlled loop?
Explain the operator overloading feature in C++ ?
What are the advantages/disadvantages of using #define?
Explain the difference between method overriding and method overloading in C++?
What is C++11?
Describe the different styles of function prototypes in C++.