Question d’entretien chez Mediaocean

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

Réponse à la question d'entretien

Utilisateur anonyme

8 mai 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++.