class Building{
Building(){
System.out.print("b ");
}
Building(String name){
this();
System.out.print("bn "+name);
}
}
public class House extends Building{
House(){
System.out.print("h ");
}
House(String name){
this();
System.out.print("hn "+name);
}
public static void main(String[] args){
new House("x ");
}
}
I THOUGHT THE OUTPUT MUST BE b bn h hn x. But the output is b h hn x.
I'm confused. How this output comes. Help me