Skip to content

Instantly share code, notes, and snippets.

@tobiballof
Created May 2, 2016 18:30
Show Gist options
  • Save tobiballof/fd45bda6307c9fcba85a74b0a8a04745 to your computer and use it in GitHub Desktop.
Save tobiballof/fd45bda6307c9fcba85a74b0a8a04745 to your computer and use it in GitHub Desktop.
/*
* 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();
}
}
/*
* 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;
}
/*
* 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;
}
}
/*
* 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;
}
}
/*
* 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