diff --git a/src/MultiSet.java b/src/MultiSet.java new file mode 100644 index 0000000..a9584bf --- /dev/null +++ b/src/MultiSet.java @@ -0,0 +1,15 @@ +public abstract class MultiSet { + // An abstract class representing the MultiSet ADT, which supports the + // add, remove, is_empty, count, and contains operations. + // + // This class itself does not handle how the underlying data is stored, + // so it just inherits Object.__init__. + + public abstract boolean add(T item); + public abstract void remove(T item); + public abstract boolean contains(T item); + public abstract boolean isEmpty (T item); + public abstract Integer count(T item); + public abstract Integer size(T item); + +}