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

boschen

parent faab7352
No related branches found
No related tags found
2 merge requests!150Main,!144boschen
Pipeline #577139 failed
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";
}
}
/* check out these products! */
public class Products { /* a good class, but not as good as cse391 */
public Product boschenProduct() {
return new Product(
"sleepCoke",
"It will help you a nice sleep",
"sleepCoke.jpg",
"really good, has sleepy coffine",
9.98
);
}
public Product kevinh33Product() {
return new Product(
"Duolingo owl",
......
public class Staff {
public Employee boschen() {
return new Employee(
"Boshan Chen",
"Sleeper",
"Sleep and stare blankly",
"White.jpg",
"umm.."
);
}
public Employee cuperido() {
return new Employee(
"Young You",
......
images/products/sleepCoke.jpg

126 KiB

images/staff/White.jpg

961 B

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