Dateien nach "/" hochladen
parent
98a34a1e20
commit
29bec800c9
|
@ -0,0 +1,6 @@
|
||||||
|
Mondnacht
|
||||||
|
Es war, als hätt' der Himmel
|
||||||
|
Die Erde still geküsst,
|
||||||
|
Dass sie im Blütenschimmer
|
||||||
|
Von ihm nun träumen müsst.
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
package Serialisierung;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
public class Product implements Serializable {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private String name;
|
||||||
|
private String description;
|
||||||
|
private double price;
|
||||||
|
|
||||||
|
public Product() {}
|
||||||
|
|
||||||
|
public Product(String name, String description, double price) {
|
||||||
|
this.name = name;
|
||||||
|
this.description = description;
|
||||||
|
this.price = price;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getPrice() {
|
||||||
|
return price;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrice(double price) {
|
||||||
|
this.price = price;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue