nus/BaseShopEvent.java
2022-08-31 12:31:30 +08:00

22 lines
479 B
Java

/**
* This class encapsulates an event in the shop
* simulation. Your task is to replace this
* class with new classes, following proper OOP principles.
*
* @author Yadunand Prem
* @version CS2030S AY22/23 Semester 2
*/
abstract class BaseShopEvent extends Event {
final Customer customer;
Shop shop;
public BaseShopEvent(double time, Customer customer, Shop shop) {
super(time);
this.customer = customer;
this.shop = shop;
}
}