Created
May 2, 2016 18:30
-
-
Save tobiballof/fd45bda6307c9fcba85a74b0a8a04745 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 Tobi | |
*/ | |
public class Amazon { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
Kunde k1 = new Kunde(); | |
Bestellung bestellung = new Bestellung(); | |
} | |
} |
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 Tobi | |
*/ | |
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 Tobi | |
*/ | |
public class Bestellung { | |
Posten p1; | |
public Posten getp1(){ | |
return p1; | |
} | |
} |
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 Tobi | |
*/ | |
public class Kunde { | |
String name; | |
Bestellung b; | |
public Bestellung getb(){ | |
return b; | |
} | |
} |
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 Tobi | |
*/ | |
public class Posten { | |
int menge; | |
Artikel a1; | |
public Artikel geta1(){ | |
return a1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment