subclassing a class with a private constructor

implicit super constructor Example() is not visible for default constructor.Must define an explicit constructor. Is it so because I am defining a private constructor and then trying inherit the class in other class??

Jon Skeet
people
quotationmark

Is it so because I am defining a private constructor and then trying inherit the class in other class?

Yes. If your only constructors are private, then you can't create a subclass of that class, as there would be no accessible constructors to chain to - leaving nested classes aside (where accessibility changes a little).

Consider making your constructors protected, if you really want to be able to subclass the original class.

people

See more on this question at Stackoverflow