Example 5 (3)
Class declaration (continued):
public String toString () { // Return this date rendered in ISO format. return (this.y + '-' + this.m + '-' + this.d); }
public void advance (int n) { // Advance this date by n days (where n = 0). … }
}
complicated
Diapositive précédente
Diapositive suivante
Revenir à la première diapositive
Afficher la version graphique