Java构造器继承
public class Super { public Super(ServiceA serviceA, ServiceB serviceB, ServiceC serviceC){ this.serviceA = serviceA; //etc } }
Super
public class Son extends Super{ public Son(ServiceA serviceA, ServiceB serviceB, ServiceC serviceC){ super(serviceA,serviceB,serviceC); }}
为什么java不支持构造函数继承?不允许这种继承有什么好处吗?
斯蒂芬大帝
拉丁的传说
大话西游666
相关分类