Pergunta de entrevista da empresa Symphony Teleca

How to send information from one class object to another class object without using constructors.

Respostas da entrevista

Sigiloso

4 de set. de 2016

class B{ public: int j; void display(void){ std::coutdisplay(); } }; int main(){ A aobj; B bobj; aobj.doSomethingWithThis(bobj.sendthis()); return 0; }

Sigiloso

4 de set. de 2016

class B{ public: int j; void display(void){ std::coutdisplay(); } }; int main(){ A aobj; B bobj; aobj.doSomethingWithThis(bobj.sendthis()); return 0; }