Anpassung der Parkhaus Klasse an Aufgabe durch löschung unnötiger Attribute
parent
e722310a11
commit
127695189a
|
@ -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;
|
||||
}
|
||||
public Parkhaus(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 void setPreis(double preis) {
|
||||
this.preis = preis;
|
||||
}
|
||||
|
||||
public double parkKosten = ((Auto.getEinfahrtZeit() - Auto.getBezahlZeit())*preis);
|
||||
public double berechneParkDauer (Auto auto){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue