Object Oriented Programming

1:

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

 

Answer : A

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.