class Person {
Person() {
System.out.println("This is person class");
}
}
class Student extends Person {
Student() {
super();
System.out.println("This is student class");
}
}
class Test {
Student s = new Student();
}
The output is
This is person class
This is student class
But if I comment super() call in child class constructor, output is coming same, is it like, giving super() in child class is explicit call to a constructor?