diff --git a/Qualifier Parkhaus/src/Parkhaus.java b/Qualifier Parkhaus/src/Parkhaus.java index 022271e..b0746ed 100644 --- a/Qualifier Parkhaus/src/Parkhaus.java +++ b/Qualifier Parkhaus/src/Parkhaus.java @@ -1,25 +1,20 @@ import java.util.Date; - public class Parkhaus { - private int freieParkplatz; - private double preis; - private Date opening; - private Date closing; - public Parkhaus(int freieParkplatz,double preis, Date opening, Date closing){ - this.freieParkplatz = freieParkplatz; - this.preis = preis; - this.opening = opening; - this.closing = closing; + private double preis; + + public Parkhaus(double preis){ + this.preis = preis;} + + public double getPreis() {return preis;} + + public void setPreis(double preis) { + this.preis = preis; } - public int getFreieParkplatz() {return freieParkplatz;} - public double getPreis() {return preis;} - public Date getOpening() {return opening;} - public Date getClosing() {return closing;} + public double berechneParkDauer (Auto auto){ - - public double parkKosten = ((Auto.getEinfahrtZeit() - Auto.getBezahlZeit())*preis); + }