Also irgendwo habe ich noch eines kleinen Denkfehler - vielleicht könnt ihr mir da weiterhelfen.
ich weiss leider nicht weiter wie ich in der public class Combination mit dem Objek Combination c umgehen soll.
hoffe ihr könnt mir da weiterhelfen.
vielen dank schonmal im voraus.
d) Erweitern Sie die Klasse Combination um eine Methode
Combination copy(Combination c), um eine Kopie des Combination–Objektes zu erhalten
Code:
public class CombinationTester {
public static void main(String[] args) {
Combination comb= new Combination();
Combination combKopie= comb.copy( comb);
}
Code:
public class Combination {
public Combination copy (Combination c) {
return new Combination();
}
}
ich weiss leider nicht weiter wie ich in der public class Combination mit dem Objek Combination c umgehen soll.
hoffe ihr könnt mir da weiterhelfen.
vielen dank schonmal im voraus.