Upgrade 2.12
parent
2fd23c2534
commit
d810e22f04
|
@ -8,8 +8,8 @@
|
||||||
public class Ausgabe
|
public class Ausgabe
|
||||||
{
|
{
|
||||||
public static void AutoObjekte(int r, int t, int rü, int d){
|
public static void AutoObjekte(int r, int t, int rü, int d){
|
||||||
|
Auto Mercedes = new Auto (r,t,rü,d);
|
||||||
|
Mercedes.Ausgabe();
|
||||||
|
|
||||||
}
|
}
|
||||||
public static void AutoLeistung(int g, int p, int v){
|
public static void AutoLeistung(int g, int p, int v){
|
||||||
|
|
|
@ -15,11 +15,15 @@ public class Auto
|
||||||
int Geschwindigkeit;
|
int Geschwindigkeit;
|
||||||
int PS;
|
int PS;
|
||||||
int Verbrauch;
|
int Verbrauch;
|
||||||
public Auto(int R, int T, int Rü, int D,int g, int p, int v){
|
public Auto(int R, int T, int Rü, int D){
|
||||||
Raeder = R;
|
Raeder = R;
|
||||||
Türen = T;
|
Türen = T;
|
||||||
Rückspiegel = Rü;
|
Rückspiegel = Rü;
|
||||||
Daecher = D;
|
Daecher = D;
|
||||||
|
|
||||||
|
}
|
||||||
|
public Auto(int g, int p, int v){
|
||||||
|
|
||||||
Geschwindigkeit = g;
|
Geschwindigkeit = g;
|
||||||
PS = p;
|
PS = p;
|
||||||
Verbrauch = v;
|
Verbrauch = v;
|
||||||
|
|
Loading…
Reference in New Issue