Classes Q.2

0. 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

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *