Specifica del sottotipo
public class MaxIntSet extends IntSet {
// OVERVIEW: un MaxIntSet č un sottotipo di IntSet che lo estende con
// EFFECTS: inizializza this al MaxIntSet vuoto
public int max () throws EmptyException
// EFFECTS: se this č vuoto solleva EmptyException, altrimenti
// ritorna l’elemento massimo in this
- la specifica di MaxIntSet definisce solo quello che c’č di nuovo
- il costruttore
- il metodo max
- tutto il resto della specifica viene ereditato da IntSet