期末作业 实体类
Skip to content
Sign up
zuza571
/
Games4U
Public
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Games4U/src/main/java/com/example/games4u/Game.java
@JakubMazur965
JakubMazur965 payment gateway
2 contributors
69 lines (52 sloc) 1.2 KB
package com.example.games4u;
import java.awt.image.BufferedImage;
public class Game {
private int id;
private String name;
private String type;
private int price;
private BufferedImage image;
private int quantity;
private boolean isInCart;
public Game() {}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
public BufferedImage getImage() {
return image;
}
public void setImage(BufferedImage image) {
this.image = image;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public boolean isInCart() { return isInCart; }
public void setInCart(boolean inCart) {
isInCart = inCart;
}
}
Footer
© 2023 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact GitHub
Pricing
API
Training
Blog
About
https://github.com/zuza571/Games4U/blob/main/src/main/java/com/example/games4u/Game.java