Skip to content
Snippets Groups Projects
Commit 7e70b2bc authored by Boshan Chen's avatar Boshan Chen
Browse files

2nd from boschen

parent 4c42a065
No related branches found
No related tags found
2 merge requests!150Main,!144boschen
Pipeline #577152 failed with stage
in 2 seconds
public class Product {
public String name;
public String description;
public String picture;
public String altText;
public double price;
public Product(String name, String description, String picture, String altText, double price) {
this.name = name;
this.description = description;
this.picture = picture;
this.altText = altText;
this.price = price;
}
public String getName() {
return this.name;
}
public String getAltText() {
return this.altText;
}
public String getDescription() {
return this.description;
}
public String getPicture() {
return this.picture;
}
public double getPrice() {
return this.price;
}
public String toString() {
return "Product";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment