結果 : how to pass object as parameter to constructor in java