class LuxusTaxi extends Taxi implements Barschnittstelle, Telefonzellenschnittstelle { public LuxusTaxi() { standort = new String(); bestellzeit = new String(); bestellort = new String(); } public LuxusTaxi ( String s) { standort = new String(s); bestellzeit = new String(); bestellort = new String(); } public LuxusTaxi ( String s, String z, String o) { standort = new String(s); bestellzeit = new String(z); bestellort = new String(o); } public double getraenkBestellen(String getraenk, int anzahl) { double preis; if (getraenk == "Bier") preis = 2.50; else if (getraenk == "Wein") preis = 4.40; else preis = 10.00; return preis * anzahl; } public double telefonieren(String nummer, double zeit) { return zeit*2; } }