package shiyan16; public abstract class AbstractCommand { public abstract int execute(int value); public abstract int undo(); }AbstractCommand
package shiyan16; public class Adder { private int num=0; public int add(int value) { num += value; return num; } }Adder 标签:17,16,int,abstract,value,num,实验,public From: https://www.cnblogs.com/y1126/p/17848884.html