import java.io.Serializable;
public class Book implements Serializable
{
public Book(int Number,String Name,String Author,String Press, int Count)
{
this.Number = Number;
this.Name = Name;
this.Author = Author;
this.Press = Press;
this.Count = Count;
}
public int getNumber()
{
return Number;
}
public String getName()
{
return Name;
}
public String getAuthor()
{
return Author;
}
public String getPress()
{
return Press;
}
public int getCount()
{
return Count;
}
public void setNumber(int Number)
{
this.Number = Number;
}
public void setName(String Name)
{
this.Name = Name;
}
public void setAuthor(String Author)
{
this.Author = Author;
}
public void setPress(String Press)
{
this.Press = Press;
}
public void setCount(int Count)
{
this.Count = Count;
}
public String toString()
{
return (Number+Name+Author +Press+ Count);
}
// "编号","书名 ","作者","出版社","数量"
private int Number;
private String Name;
private String Author;
private String Press;
private int Count;
}
————————————————
版权声明:本文为CSDN博主「明明如月学长」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/w605283073/article/details/46572403