Showing posts with label Subclass. Show all posts
Showing posts with label Subclass. Show all posts

Sunday, April 10, 2011

Published 4/10/2011 by with 1 comment

call to super must be first statement in constructor

The error message is very clear actually: i) We can call super in the constructor of a subclass ii) If we call super in the constructor of a subclass, it must be the first statement in that constructor; i.e, before writing any other statement we call to super must be made. It is mentionable that, super(parameters) calls the constructor of the super class. See the code below: The super class... public...
Read More
    email this       edit