forum

home / developersection / forums / in java, what's the difference between public, default, protected, and private?

In Java, what's the difference between public, default, protected, and private?

Royce Roy 2468 06-May-2015
Are there clear rules on when to use each of these when making classes and interfaces and dealing with inheritance?

Updated on 06-May-2015
Royce Roy

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By