What will be the output of the following program?
class BaseClass {
BaseClass() {
System.out.print("*");
}
BaseClass(String str) {
this();
System.out.print("@" + str);
}
}
public class ChildClass extends BaseClass {
ChildClass() {
System.out.print("#");
}
ChildClass(String name) {
this();
System.out.print("$" + name);
}
public static void main(String args[]) {
new ChildClass("hello");
}
}