Problem Statement
Which access modifier makes a member accessible only within its own class?
Explanation
The private modifier restricts access to members so they can be used only within the same class. It enforces encapsulation by preventing outside modification of internal data.
Code Solution
SolutionRead Only
class Person { private int age; }