結果 : need of polymorphism in java