Example 8: design of Date ADT (1)
Recall the Date contract of Example 4:
public interface DateADT { // private …; // public Date (int y, int m, int d); public int compareTo (Date that); public String toString (); public void advance (int n);}
constructor
mutative transformer
accessor
accessor
Diapositive précédente
Diapositive suivante
Revenir à la première diapositive
Afficher la version graphique