Which of the following statements is false? ( )
A、Themethod’sreturntypespecifiesthetypeofdatareturnedtoamethod’scaller.
B、Emptyparenthesesfollowingamethodnameindicatethatthemethoddoesnotrequireanyparameterstoperformitstask.
C、Whenamethodthatspecifiesareturntypeotherthanvoidiscalledandcompletesitstask,themethodmustreturnaresulttoitscallingmethod
D、Classesoftenprovidepublicmethodstoallowtheclass’sclientstosetorgetprivateinstancevariables;thenamesofthesemethodsmustbeginwithsetorget.
发布时间:2024-06-25 13:08:49