Created
April 17, 2016 17:11
-
-
Save Fundibalus/90751d347f8831b7182078fd2baa1258 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package amazon; | |
/** | |
* | |
* @author Marlon | |
*/ | |
public class Amazon { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
Kunde Hans = new Kunde(); | |
Bestellung bestellung1 = new Bestellung(); | |
Posten posten1 = new Posten(); | |
Artikel artikel1 = new Artikel(); | |
Hans.name = "Hans"; | |
posten1.menge = 10; | |
artikel1.name = "Duschgel"; | |
Hans.bestellung = bestellung1; | |
bestellung1.posten = posten1; | |
posten1.artikel = artikel1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package amazon; | |
/** | |
* | |
* @author Marlon | |
*/ | |
public class Artikel { | |
String name; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package amazon; | |
/** | |
* | |
* @author Marlon | |
*/ | |
public class Bestellung { | |
Posten posten; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package amazon; | |
/** | |
* | |
* @author Marlon | |
*/ | |
public class Posten { | |
Artikel artikel; | |
int menge; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment