問題詳情

109 


Which code fragment, inserted at the end of line 12, produces the output p is 420?
(A) p.setWeight(420);
(B) p.changePayload(420);
(C) p = new Payload(420);
(D) Payload.setWeight(420);
(E) p = Payload.setWeight(420);

參考答案