System Analysis and Design
Exercise No. 1
Due on December 16th by 5pm
Read the following article, which all the questions refer to: http://www.elj.com/eiffel/dbc/
class STACK
inherit
___ MY_DISPENSER
______ redefine insert, remove, count, is_empty
______ rename insert as push, remove as pop
___ end
feature
___ -- this is the part you fill in...
invariant
___ -- you fill this part as well...
endFor each routine, write its signature (type of arguments and return values if any), preconditions and postconditions. Remember that these are also inherited. Also, write the class's invariant.