Question: Why would you make a field private?
- so only methods in the same file can access the field
- so only methods in the same package can access the field
- so only methods in the same class could access the field
- so only methods defined in a Java class can access the field
Answer: The correct answer of the above question is Option C:so only methods in the same class could access the field