请在 下方输入 要搜索的题目:

Which of the following statements is false? ( )


A、Themethod’sreturntypespecifiesthetypeofdatareturnedtoamethod’scaller.
B、Emptyparenthesesfollowingamethodnameindicatethatthemethoddoesnotrequireanyparameterstoperformitstask.
C、Whenamethodthatspecifiesareturntypeotherthanvoidiscalledandcompletesitstask,themethodmustreturnaresulttoitscallingmethod
D、Classesoftenprovidepublicmethodstoallowtheclass’sclientstosetorgetprivateinstancevariables;thenamesofthesemethodsmustbeginwithsetorget.

发布时间:2025-01-01 03:30:55
推荐参考答案 ( 由 百万题库网 官方老师解答 )
答案:Classes often provide public methods to allow the class’s clients to set or get private instance variables; the names of these methods must begin with set or get.
专业技术学习
专业技术学习