I want the parameterized constructor(Constructor of choice) of the parent class to be called during inheritance.
But by default I'm getting the un-parameterized constructor.
class parent
{
parent(int i){System.out.println("From parameterized constructor");}
parent(){System.out.println("From Normal Constructore");}
}
class child extends parent
{
child()
{
System.out.println("From child");
}
}
public class MyClass {
public static void main(String args[]) {
child c=new child();
}
}