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

发布于 2021-02-15 03:24:47
【单选题】
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

查看更多

关注者
0
被浏览
41
  • 体验AI问答!更聪明、超智能!
  • 一款基于GPT的超级AI助手,可以对话、创作、写文案!
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

手机
浏览

扫码手机浏览

分享
好友

在线
客服