A large arithmetic expression is to be evaluated using OOP principles. How would you do it?
Anonymous
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++.
Check out your Company Bowl for anonymous work chats.