Lets say we have two classes:
public class A{
public A(){
System.out.println("A");
}
}
and its subclasas
public class B extends A{
public B(){
System.out.println("B");
}
}
The output below would be A A B
public static main(String[] args){
A a = new A();
B b = new B();
}
WHY like this is constructor is not inherited? SHould not we call super() in subclass constructor to call constructor of parent?
thanks