#sigle inheritance in java