下列哪种类成员修饰符修饰的变量只能在本类中被访问?()

下列哪种类成员修饰符修饰的变量只能在本类中被访问?()

A.protected

B.public

C.default

D.private

正确答案:D

猜你喜欢