posted 16 years ago
Hi Kish,
You need to understand that whenever a class is defined with no constructor, then only compiler will insert a default no-arg constructor to that class and calls the no-arg constructor of the super class.
So, In your case the class Inherit is not having any constructor. So compiler will insert a default no-arg constructor and calls the no-arg constructor of the super class which is X in your case. But since the class X is not having the default no-arg constructor, compiler will complain that there is no default constructor exists for the class X.