25 lines
390 B
Java
25 lines
390 B
Java
|
|
|
|
public class Krankenwagen extends Auto
|
|
{
|
|
private boolean blaulicht;
|
|
public Krankenwagen(){
|
|
super();
|
|
|
|
blaulicht = false;
|
|
}
|
|
|
|
public void turnOn()
|
|
{
|
|
blaulicht = true;
|
|
}
|
|
|
|
public void turnOff(){
|
|
blaulicht = false;
|
|
}
|
|
|
|
public String toString(){
|
|
return "Der Krankenwagen" + super.toString();
|
|
}
|
|
}
|