⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 information.java

📁 软件工程实践课程的答案哦
💻 JAVA
字号:
import java.io.*;
public class Information implements java.io.Serializable
{
	protected String userName;
	protected int score;
	protected Information next;

	public Information(String pName,int pScore)
	{
		this.userName=pName;
		this.score=pScore;
		this.next=null;
	}
	public Information(String pName,int pScore,Information pNext)
	{
		this.userName=pName;
		this.score=pScore;
		this.next=pNext;
	}
	public Information()
	{
		this(null,-1);
	}
	
	public void setUserName(String pName)
	{
		this.userName=pName;	
	}
	
	public void setScore(int pScore)
	{
		this.score=pScore;
	}
	
	public String getUserName()
	{
		return this.userName;
	}
	
	public int getScore()
	{
		return this.score;
	}
	
	public Information getNext()
	{
		return this.next;
	}
	
	public void setNext(Information pNext)
	{
		this.next=pNext;
	}
}	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -