Which of the following statements is false? ( )
选项:
A:The method’s return type specifies the type of data returned to a method’s caller.
B:Empty parentheses following a method name indicate that the method does not require any parameters to perform its task.
C:When a method that specifies a return type other than void is called and completes its task, the method must return a result to its calling method
D: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.
发布时间:2024-05-21 13:43:07