Initial commit
This commit is contained in:
commit
054b77ccdd
27 files changed
+1362
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user