auto added
parent
580321e288
commit
07d3c4c671
|
@ -1,5 +1,18 @@
|
|||
package defaultt;
|
||||
|
||||
public class Auto {
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class Auto{
|
||||
private String kennzeichen;
|
||||
private LocalDateTime einfahrtUhrzeit;
|
||||
private double schulden;
|
||||
private boolean eAuto;
|
||||
|
||||
|
||||
public Auto(String kennzeichen, LocalDateTime einfahrtUhrzeit) {
|
||||
this.kennzeichen = kennzeichen;
|
||||
this.einfahrtUhrzeit = einfahrtUhrzeit;
|
||||
this.schulden = 0;
|
||||
this.eAuto = kennzeichen.endsWith("E");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue