mirror of
https://github.com/Dichgrem/Java.git
synced 2025-12-16 20:42:00 -05:00
style:fmt
This commit is contained in:
@@ -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
|
||||
+ "]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user