31 lines
533 B
Java
31 lines
533 B
Java
|
|
class Prudukt {
|
|
private String name;
|
|
private int anzahl;
|
|
private int id;
|
|
private float preis;
|
|
|
|
Prudukt(String name, int anzahl, int id, float preis) {
|
|
this.name = name;
|
|
this.anzahl = anzahl;
|
|
this.id = id;
|
|
this.preis = preis;
|
|
}
|
|
|
|
public float getPreis() {
|
|
return this.preis;
|
|
}
|
|
|
|
public int getAnzahl() {
|
|
return this.anzahl;
|
|
}
|
|
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public int getId() {
|
|
return this.id;
|
|
}
|
|
}
|