Correct Answer: Private
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 ________ and ________ operators can be used to increment or decrement a pointer variable.
The ________ class constructor is called before the ________ class constructor.
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.
If a matching catch handler (or ellipsis catch handler) cannot be found for the current exception, then the following predefined runtime function is called ______.
Consider the following code: #include using namespace std; int main() { cout << 'The value of __LINE__ is ' <<__LINE__; return 0; } What will be the result when the above code is compiled and executed?
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.