Dateien nach "/" hochladen

main
Nicholas Maximilian Gabriel Schmidtke 2024-04-13 15:49:40 +02:00
parent 98a34a1e20
commit 29bec800c9
2 changed files with 50 additions and 0 deletions

6
Mondnacht.txt 100644
View File

@ -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.

44
Product.java 100644
View File

@ -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;
}
}