單項選擇題

A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()    

A. public
B. no modifier
C. protected
D. private

微信掃碼免費搜題