97
Example: A Stack as an Abstract Data Object (ADO)
(cont)
Example of use:
Stack
Operation
Return value
?
create
-
-
isempty
true
-
push 90
-
90
push 24
-
90 24
push 42
-
90 24 42
pop
42
90 24
isempty
false