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
发布时间:2025-08-09 09:41:13