Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
23
Task/Abstract-type/Oz/abstract-type.oz
Normal file
23
Task/Abstract-type/Oz/abstract-type.oz
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
declare
|
||||
class BaseQueue
|
||||
attr
|
||||
contents:nil
|
||||
|
||||
meth init
|
||||
raise notImplemented(self init) end
|
||||
end
|
||||
|
||||
meth enqueue(Item)
|
||||
raise notImplemented(self enqueue) end
|
||||
end
|
||||
|
||||
meth dequeue(?Item)
|
||||
raise notImplemented(self dequeue) end
|
||||
end
|
||||
|
||||
meth printContents
|
||||
{ForAll @contents Show}
|
||||
end
|
||||
end
|
||||
|
||||
Queue = {New BaseQueue init} %% throws
|
||||
Loading…
Add table
Add a link
Reference in a new issue