Newer
Older
POS_for_GUI / src / resources / Payment.java
student on 4 Apr 2022 396 bytes [add]featuring to generate window
package resources;
import java.util.*;

public class Payment {
	private Points points;
	private History history;
	private int value;
	public Payment(Points points, History history) {
		this.points = points;
		this.history = history;
	}
	public void purchase(int x) {
		this.value = x;
		points.updatePayment(value);
		history.updatePayment(value);
	}
	public int getValue() {
		return value;
	}
}