Bye - Java Quiz Question


What will be the output of the following program?

class Bye extends Hello
{
    Bye()
    {
        System.out.print("Good Bye!");
    }
    public static void main(String args[])
    {
        new Bye();
    }
}
class Hi
{
    Hi()
    {
        System.out.print("Hi...!");
    }
}
class Hello extends Hi
{
    Hello()
    {
        System.out.print("Hello ");
    }
}


A
Good Bye!
B
Hi...!Hello Good Bye!
C
Compilation Error
D
Runtime Error