methoditem.java

来自「PSP个人软件过程第二个练习」· Java 代码 · 共 68 行

JAVA
68
字号

package psp0_2;
import java.io.*;

/**
 * FunctionItem: keep the message of one function in certain class
 * @author  QianYin
 * @version  Wed Sep 20 22:10:00 2006        
*/
public class MethodItem 
{

	private String description;
	private int size;
	
	
	/**
	 * method
	 * @param str
	 */
	public MethodItem(String str) 
	{
		super();
		// TODO Auto-generated constructor stub
		this.description = str;
		size = 0;
	}

	
	/**
	 * method
	 *
	 */
	public void autoIncSize()
	{
		this.size++;
	}

	/**
	 * method
	 *
	 */
	public void autoDecSize()
	{
		this.size--;
	}
	
	
	/**
	 * method
	 *
	 */
	public String getDescription() {
		return description;
	}

	
	/**
	 * method
	 *
	 */
	public int getSize() {
		return size;
	}
	

}

⌨️ 快捷键说明

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