摘要:
1. 抽象类的实例化 1 package interfaces; 2 abstract class BaseWithPrint { 3 public BaseWithPrint() { print(); } 4 public abstract void print(); 5 } 6 class DerivedWithPrint extends BaseWithPrint { 7 int i = 47; 8 public void print() { 9 System.out.println("i = " + i);10 }11 }12 public class E0... 阅读全文