結果 : solid open closed principle example java