Question OOP-ENC-0004
EasyWhich access modifier makes a member accessible from anywhere?
- A.
internal-only
- B.
private
- C.
Show answer and explanation
Answer: D
Public members form the class's interface to the outside world.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Encapsulation question
Which access modifier makes a member accessible from anywhere?
internal-only
private
Answer: D
Public members form the class's interface to the outside world.
protected
public