Correct Answer: Declared
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
C++ allows you to redefine the way ________ work when used with class objects.
C++ automatically places ________ at the end of a string constant (string literal).
Class templates are called ____ types.
Given the statement double *p;, the statement p++; will increment the value of p by ____ byte(s).
If a member of a class is ____, you cannot access it outside the class.
Answer the question that follows. template Run(T process); Which one of the following is an example of the sample code given above?
Which is NOT valid C++ casts
Answer the question that follows. class SomeClass { int x; public: SomeClass (int xx) : x(xx) {} }; SomeClass x(10); SomeClass y(x); What is wrong with the sample code above?
Choose the option related to static member functions: 1. They have external linkage 2. They do not have 'this' pointers 3. They can be declared as virtual 4. They can have the same name as a non-static function that has the same argument types
Output of the following code? class b { int i; public: virtual void vfoo() { cout <<'Base '; } }; class d1 : public b { int j; public: void vfoo() { j++; cout <<'Derived'; } }; class d2 : public d1 { int k; }; void main() { b *p, ob; d2 ob2; p = &ob; p->vfoo(); p = &ob2; p->vfoo(); }