This week's giveaway is in the Spring forum. We're giving away four copies of liveProject: Protecting User Data with Spring Security and OAuth2 and have Laurentiu Spilca on-line! See this thread for details.
When you call a constructor, it must first go to the superclass' constructor. You didn't write super(...);, so the compiler will attempt to add super(); But your superclass does not have a no‑args constructor, so super(); cannot match a constructor call. So the compiler can't complete compilation.
You must add a super(int); statement to your subclass' constructor.
In inheritance and parameterized contructor, there are few rules.
Rule 1 : If Derived class contructor is parameterless, there has to be 1 parameterless constructor in Base class
If you dont want to add a parameterless constructor in Base class, then
Rule 2 : Call the contructor of Base class in the Derived class contructor explicitly.
NOTE : The call must be the first statement in the Derived class constructor.