+ 3
Can anyone explain diference between private and public and method set?
2 odpowiedzi
+ 4
Great question, Florian Hyseni.
The private hides from other classes within the package. The public exposes to classes outside the package.
Then there is this "protected" that is a version of public restricted only to subclasses.
- 1
the usage of private can be understood in tea
m work project's
you better use public in practice