在用接口的时候只需要写方法的声明就行,不需要写方法的具体实现,否则就会报Abstract methods do not specify a bodyeg:public interface IProduct { void println(){ }}