Hier fehlt mir ein Lösungsansatz. Kann jemand helfen?
package de.codegym.task.task05.task0513;
/*
Lass uns ein Rechteck erstellen
*/
public class Rechteck {
private int oben;
private int links;
private int breite;
private int hoehe;
public void initialisieren(int oben, int links, int breite, int hoehe) {
this.oben = oben;
this.links = links;
this.breite = breite;
this.hoehe = hoehe;
}
public void initialisieren(int oben, int links) {
this.oben = oben;
this.links = links;
breite = 0;
hoehe = 0;
}
public void initialisieren(int oben, int links, int breite) {
this.oben = oben;
this.links = links;
this.breite = breite;
this.breite = hoehe;
}
public static void main(String[] args) {
}
}