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" ; 

}

};

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

 

Answer : B

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.