取代Abstract类,用interface,例 //用interface取代abstract public interface Test { public String getStr(); } public abstract SubTest implements Test{ private String str; } 好处,可实现多继承.易用实现类分化功能