[单选题]JavaBean的属性必须声明为private,方法必须声明为(       )访问类型。

A
private
B
static
C
protect
D
public
正确答案:D
扫描二维码
免费搜题、免费刷题、免费查看解析