Initial commit

This commit is contained in:
xixu-me committed 2024-03-17 22:31:48 +08:00
commit 054b77ccdd
27 files changed
+1362

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
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;
}
}