Skip to content

Instantly share code, notes, and snippets.

@Fundibalus
Created April 17, 2016 17:11
Show Gist options
  • Save Fundibalus/90751d347f8831b7182078fd2baa1258 to your computer and use it in GitHub Desktop.
Save Fundibalus/90751d347f8831b7182078fd2baa1258 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 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;
}
}
/*
* 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;
}
/*
* 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;
}
/*
* 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