83
Example: A Stack as an Abstract Data Object (ADO)
(cont)
Example of use:
Stack
Operation
Return value
?
create
-
-
isempty
true
-
push a
-
a
push b
-
a b
push c
-
a b c
pop
c
a b
isempty
false