This commit is contained in:
xixu-me committed 2024-03-30 16:39:21 +08:00
1 parent 062beda77e
commit b0055a87bd
25 files changed
+40 -93

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package library;
public class Test {
public static void main(String[] args) {
Administrator adm = new Administrator(1, "John");
adm.getLib().add(new Book("123", "Book1", 1));
adm.getLib().add(new Book("124", "Book2", 1));
adm.getLib().add(new Book("125", "Book3", 1));
Student st = new Student(1, "Alice");
st.getBg().add(new Book("123", "Book1", 1));
st.getBg().add(new Book("124", "Book2", 1));
st.getBg().add(new Book("125", "Book3", 1));
adm.register(st);
}
}