完了済
This commit is contained in:
20
Question14-Interface/src/main/java/ProgrammingBook.java
Normal file
20
Question14-Interface/src/main/java/ProgrammingBook.java
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
public class ProgrammingBook implements Book {
|
||||
|
||||
String title;
|
||||
String[] chapters;
|
||||
|
||||
public ProgrammingBook(String title,String[] chapters) {
|
||||
this.title = title;
|
||||
this.chapters = chapters;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public String[] getChapters() {
|
||||
return this.chapters;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user