Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package HW.OOP.SHOP;
- public class Mug {
- private String type;
- private String color;
- private double volume;
- private String material;
- private double price;
- public Mug(String type, String material, String color, double volume, double price) {
- this.type = type;
- this.material = material;
- this.color = color;
- this.volume = volume;
- this.price = price;
- }
- public String getType() {
- return type;
- }
- public String getMaterial() {
- return material;
- }
- public String getColor() {
- return color;
- }
- public double getVolume() {
- return volume;
- }
- public double getPrice() {
- return price;
- }
- public void setType(String type){
- this.type = type;
- }
- public void setMaterial(String material) {
- this.material = material;
- }
- public void setColor(String color) {
- this.color = color;
- }
- public void setVolume(double volume) {
- this.volume = volume;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement