Interview Question

Interview(Student Candidate)

What's the difference between a Public, Private, and

  Protected?
Answer

Interview Answer

1 Answer

1

Public: - code accessible by any package Protected - code accessibly by self and sub-classes only Private - code accessibly only inside the class

TP on Feb 22, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.