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/ElectronicPackage.java

16 lines
492 B

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