You cannot inherit a constructor. That is, you cannot create a instance of a subclass using a constructor of one of it's super classes. One of the main reasons is because you probably don't want to override the constructor of super class', which would be possible if they were inherited. By giving the developer the ability to override a super class constructor you would erode the main feature of encapsulation abilities of the java programming language.
About Java and it's related concepts..
Comments
Post a Comment