java 接口实例化的问题 接口能实例化吗 不是只能实现吗?- public interface Factory {
- public CheapSoundFile create();
- public String[] getSupportedExtensions();
- }
- static Factory[] sSubclassFactories = new Factory[] {
- CheapAAC.getFactory(),
- CheapAMR.getFactory(),
- CheapMP3.getFactory(),
- CheapWAV.getFactory(),
- };
- public interface ProgressListener {
- boolean reportProgress(double fractionComplete);
- }
- protected ProgressListener mProgressListener = null;
复制代码
|
|