Inheritance Sample Code In Java