/**
 * Write a description of class Supermarkt here.
 *
 * @author (your name)
 * @version (a version number or a date)
 */
public class Supermarkt {
    private Artikel[] sortiment;

    public Supermarkt() {
        sortiment = new Artikel[11];
        sortiment[0] = new Milchprodukte("Gouda", "Frico", 4.90, "Holland", 48);
        sortiment[1] = new Milchprodukte("Tilsiter", "Südmilch", 7.90, "Deutschland", 60);
        sortiment[2] = new Getraenke("Bionade Ingwer", "Bionade GmbH", 0.69,"Deutschland", 330);
        sortiment[3] = new Alkohol("Tannenzäpfle Pils", "Rothaus Brauerei", 0.74, "Deutschland", 330, 4.8);
        sortiment[4] = new Alkohol("Trollinger mit Lemberger", "Württembergische Genossenschaftswinzerei", 3.75, "Deutschland", 1000, 12);
        sortiment[5] = new Zeitschriften("Der Spiegel", "Spigel-Verlag", 4.90, 180, "wöchentlich", "Samstag");
        sortiment[6] = new Zeitschriften("NEON", "Gruner+Jahr", 3.50, 180, "monatlich", "20. eines Monats");
        sortiment[7] = new Buecher("Limit", "Kiepenheuer & Witsch", 26.00, 1328, "Frank Schätzing", 2009);
        sortiment[8] = new Elektronik("Staubsauger VS 04 G 2301", "Siemens", 89.95, 2300);
        sortiment[9] = new Elektronik("Haartrockner SalonDry", "Philips", 14.99, 1800);
        sortiment[10] = new Akkugeraete("1661", "Nokia", 34.95, 3, 475);
    }


    public void sortimentAnzeigen() {
        System.out.println("\u000CWir haben im Angebot:");
        for (Artikel a : sortiment) {
            if (a != null) {
                System.out.println(a);
            }
        }
    }

    public static void main(String[] args) {
        Supermarkt supermarkt = new Supermarkt();
        supermarkt.sortimentAnzeigen();
    }
}

