You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmpt213-a2/src/PerishablePackage.java

16 lines
500 B

import java.time.LocalDateTime;
public class PerishablePackage extends PackageInfo{
LocalDateTime expiryDate;
public PerishablePackage(String name, String note, double price, double weight, boolean delivered, LocalDateTime expectedDate, LocalDateTime expiryDate) {
super(name, note, price, weight, delivered, expectedDate);
this.expiryDate = expiryDate;
}
@Override
public String toString() {
return super.toString()+"expiryDate=" + expiryDate;
}
}