Why should i need to declare a default constructor in the super, if there exist a implicit default constructor declaration in the super.
No when you declare your own constructor in any class , the compiler no longer provide its own default constructor !!
If thats clear,
Now see this code :
when you call the constructor of sub-class , the compiler execute the firs line as the call to super class constructor ..
in your original code , you are not providing the default constructor like this :
and when compiler sees this code :
it replace first line of the subclass constructor like this :
so there is no default constructor for super class , hence compiler raise an error !!
Hope this help !