Java-Standardkonstruktor

Was genau ist ein Standard-Konstruktor — können Sie mir sagen, welche der folgenden ist ein Standard-Konstruktor und was unterscheidet es von jedem anderen Konstruktor?

public Module() {
   this.name = "";
   this.credits = 0;
   this.hours = 0;
}

public Module(String name, int credits, int hours) {
   this.name = name;
   this.credits = credits;
   this.hours = hours;
}

InformationsquelleAutor der Frage antanis | 2010-12-20

Schreibe einen Kommentar