-
Tom started the topic Why java doesn't support constructor inheritance? in the forum Java J2EE Programming 6 years, 6 months ago
I was wondering why in java constructors are not inherited? You know when you have a class like this:
public class ABC {
public ABC(ServiceA serviceA, ServiceB serviceB, ServiceC serviceC){
this.serviceA = serviceA;
//etc
}}
Later when you inherit from ABC, java will complain that there is no default constructor defined. The…Read more