Questions tagged [modifier]

347 questions
-4
votes
1 answer

Is there any point of using private / protected instead of public in c# apart from having 'clean code'?

Apart from the code being cleaner or to maintain the object-oriented status of c#, is there really any point in using private / protected instead of public?
vxern
  • 3
  • 3
-6
votes
2 answers

Java: What modifier makes the object readable outside the class, but not writable?

Java: What modifier makes the object readable outside the class, but not writable? And the object can be changed within the class.
Titan
  • 33
  • 10
1 2 3
23
24