style:fmt

This commit is contained in:
dichgrem
2025-11-15 13:30:17 +08:00
parent c20e8949a5
commit b03fcbeded
11 changed files with 220 additions and 223 deletions

View File

@@ -1,30 +1,35 @@
package com.study.demo3;
public class EBook extends Book {
private double fileSize;
private double fileSize;
public EBook() {
super();
}
public EBook() {
super();
}
public EBook(String isbn, String title, double fileSize) {
super(isbn, title);
this.fileSize = fileSize;
}
public EBook(String isbn, String title, double fileSize) {
super(isbn, title);
this.fileSize = fileSize;
}
public double getFileSize() {
return fileSize;
}
public double getFileSize() {
return fileSize;
}
public void setFileSize(double fileSize) {
this.fileSize = fileSize;
}
public void setFileSize(double fileSize) {
this.fileSize = fileSize;
}
@Override
public String toString() {
return "EBook [ISBN=" + isbn + ", Title=" + title + ", FileSize=" + fileSize + "MB, Available=" + available + "]";
}
@Override
public String toString() {
return "EBook [ISBN="
+ isbn
+ ", Title="
+ title
+ ", FileSize="
+ fileSize
+ "MB, Available="
+ available
+ "]";
}
}