Java Program Using Single Inheritance Example Program