Simple Program For Single Inheritance In Java