結果 : how to avoid inheritance in java