Users Pricing

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 2540 06 May 2015
Are there clear rules on when to use each of these when making classes and interfaces and dealing with inheritance?

Royce Roy

Other


1 Answers

Anonymous User 06 May 2015 Accepted Answer