Java / Soft Drink Machine GUI / SoftDrink.java
SoftDrink.java
Raw
/**
 * Program Name: SoftDrink.java
 * Author: Essam Fahmy (1105855)
 * Date: August 15, 2022
 * Purpose:
 */

import java.util.*;

public class SoftDrink {
	
	private String name;
	private double price;
	private int quantity;
	
	public SoftDrink(String name, double price, int quantity){
		
		this.name = name;
		this.price = price;
		this.quantity = quantity;
		
	}
	
	public String getName() {
		
		return this.name;
	}
	
	public void setName(String name) {
		
		this.name = name;
	}
	
	public double getPrice() {
		
		return this.price;
	}
	
	public void setPrice(double price) {
		
		this.price = price;
	}
	
	public int getQuantity() {
		
		return this.quantity;
	}
	
	public void setQuantity(int quantity) {
		
		this.quantity = quantity;
		
	}
	
	@Override
	public String toString() {
		
		return "This is a DrinkMachine";
	}
}