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