1.

Given a method in a public class, what access modifier do you use to restrict access to that method to only the other members of the same class?

Answer»

Private access modifier.
1. not access outside of the CLASS.
2. you can access THROUGOUT the same class
3. you can't access from the derived class.
as protected member.



Discussion

No Comment Found