Z
Zhao
"...The Set interface extends Collection and contains no methods other
than those inherited from Collection. It adds the restriction that
duplicate elements are prohibited..."
How can Set, an interface, enforce the "no duplicate elements" without
any implementation?
My guess is that there is someting in the Collection framework carry
out this
enforcement.
Anyone konws?
thanks
than those inherited from Collection. It adds the restriction that
duplicate elements are prohibited..."
How can Set, an interface, enforce the "no duplicate elements" without
any implementation?
My guess is that there is someting in the Collection framework carry
out this
enforcement.
Anyone konws?
thanks