class arijit { public static void main(String args[]) { System.out.println(\"Base class main\"); amit ab=new amit(); //how is it possible as the sub class object a
The place you can't create a sub-class in the parent class is in the constructor.