Hai,
class Super{
private Super(){}
}
class Sub extends Super{
public static void main(
String a[]){
new Sub();
}
I know, having a private constructor means that we cannot instantiate the class outside of it. In this code, does it also implicitly mean that there cannot be any subclass of Super?
Any ideas?
Thanks.