Correct Answer: Base, derived
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C++ Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C++ MCQ Questions
The ________ is/are used to display information on the computer's screen.
The ________ library function reverses the order of a character array.
The ________ object enables a program to read data from the user.
The ________ of recursion is the number of times a recursive function calls itself.
"the ________ operator is used in c++ to test for equality.
Which operators cannot be overloaded?
Output of the following code? #include using namespace std; class b { int i; public: void vfoo() { cout <<'In Base '; } }; class d : public b { int j; public: void vfoo() { cout<<'In Derived '; } }; void main() { b *p, ob; d ob2; p = &ob; p->vfoo(); p = &ob2; p->vfoo(); ob2.vfoo(); }
Unary operator overloaded by means of a friend function takes one reference argument.
Which STL classes is deprecated (ie should no longer be used)
Suppose MyClass is a class that defines a copy constructor and overloads the assignment operator. In which of the following cases will the copy constructor of MyClass be called?