Class A
{ public :
A(void)
{cout << "Howzaht" ; }
~ A(void)
{cout << "whatizit " ; }
};
class B:A
{ public:
~ B (void)
{
cout << "WYSIWYG" ;
}
cout << "YACC" ;
}
};
The declaration B x;
A. | prints Howzhat WYSIWYG YACC Whatizit |
B. | prints nothing |
C. | prints YACC Whatizit Howzhat WYSIWYG |
D. | none of the above |
Option: A Explanation : Click on Discuss to view users comments. |
Class A
{ public :
A(void)
{cout << "Howzaht" ; }
~ A(void)
{cout << "whatizit " ; }
};
class B:A
{ public:
~ B (void)
{
cout << "WYSIWYG" ;
}
cout << "YACC" ;
}
};
If the main function has the two statements
B x ;
cout << " done" ;
the output will be
A. | Howzhat WYSIWYG YACC Whatizi t done |
B. | Howzhat WYSIWYG done YACC Whatizit |
C. | Yl>.CC Whatizit Howzhat WYSIWYG done |
D. | none of the above |
Option: B Explanation : Click on Discuss to view users comments. |
Let class APE be a friend of class SAPIEN. Let class HUMAN be a child class of SAPIEN and let MONKEY be a child class of APE. Then
A. | SAPIEN is not a friend of APE |
B. | APE is not a friend of HUMAN |
C. | MONKEY is not a friend of SAPIEN |
D. | All of these |
Option: D Explanation : Click on Discuss to view users comments. |
Syllabus covered in this section is-
This Section covers OOPS Questions Answers .These questions can be used for the preparation of various competitive and academic exams like
Who can benefit
Various Search Terms Used For This Section Are