diff --git a/Mondnacht.txt b/Mondnacht.txt new file mode 100644 index 0000000..b6edf1b --- /dev/null +++ b/Mondnacht.txt @@ -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. + diff --git a/Product.java b/Product.java new file mode 100644 index 0000000..12bce8d --- /dev/null +++ b/Product.java @@ -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; + } +}