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

+41
View File
@@ -0,0 +1,41 @@
package library;
public class Student {
private int iId;
private String strName;
private Bag bg;
public Student(int inId, String inName) {
this.iId = inId;
this.strName = inName;
this.bg = new Bag();
}
public void addBook(Book bk) {
this.bg.add(bk);
}
public int getiId() {
return iId;
}
public void setiId(int iId) {
this.iId = iId;
}
public String getStrName() {
return strName;
}
public void setStrName(String strName) {
this.strName = strName;
}
public Bag getBg() {
return bg;
}
public void setBg(Bag bg) {
this.bg = bg;
}
}