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.

18 lines
460 B

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