To make a variable defined in a class accessible only to methods defined in the classes in same package, which of the following keyword should be used. Select the one correct answer
选项:
A:By using the keyword private before the variable;
B:By using the keyword protected before the variable;
C:By using the keyword public before the variable;
D:The variable should not be preceded by any of the above mentioned keywords
发布时间:2024-06-09 09:43:50