結果 : typescript when to use interface vs class