Using Test Driven Development, create a Stack class that can hold the last evaluated expression (for lastq
) and the last answer returned (for last
). Also, modify your Evaluate class appropriatly handle the last
and lastq
commands.
- Ensure your Stack class can easily set the
lastq
andlast
(you can name your properties whatever you want) - Prove your Evaluate class can properly handle the
lastq
andlast
commands.