Pergunta de entrevista da empresa Mediaocean

A large arithmetic expression is to be evaluated using OOP principles. How would you do it?

Resposta da entrevista

Sigiloso

8 de mai. de 2018

Yes. Used most of the OOPs concepts like polymorphism, inheritance,etc used concepts in Compiler design like bottom up approach in parsing the expression. Storing the operands and operators in a tree structure. And result of the expression will be obtained in the root. Wrote pseudo code in C++.