Skip to main content
21 events
when toggle format what by license comment
Oct 23, 2013 at 7:36 history closed Jim G.
CommunityBot
Kilian Foth
thorsten müller
gnat
Duplicate of Why do we need private variables?
Oct 22, 2013 at 1:00 review Close votes
Oct 23, 2013 at 7:39
Oct 24, 2012 at 1:13 comment added Tulains Córdova Class scope is intended to help humans.
Oct 23, 2012 at 23:21 history edited Qix - MONICA WAS MISTREATED
edited tags
Oct 23, 2012 at 22:16 comment added Qix - MONICA WAS MISTREATED @Brian good point
Oct 23, 2012 at 15:55 comment added Brian For C#, it does serve a security purpose. See stackoverflow.com/a/893724/18192 . The short answer is that class scope can prevent untrusted code which is from accessing out of scope methods. Notice the word untrusted. Code which is running with full trust can use reflection to access private methods.
Oct 23, 2012 at 12:56 answer added MPi timeline score: 9
Oct 23, 2012 at 11:18 answer added Shivan Dragon timeline score: 1
Oct 23, 2012 at 10:47 answer added MarkJ timeline score: 3
Oct 23, 2012 at 9:40 answer added Evan Plaice timeline score: 3
Oct 23, 2012 at 9:35 answer added AakashM timeline score: 8
Oct 23, 2012 at 9:32 answer added user470365 timeline score: 1
Oct 23, 2012 at 9:01 history tweeted twitter.com/#!/StackProgrammer/status/260667313110519808
Oct 23, 2012 at 8:29 answer added Deco timeline score: 18
Oct 23, 2012 at 7:33 vote accept Qix - MONICA WAS MISTREATED
Oct 23, 2012 at 7:31 history edited Qix - MONICA WAS MISTREATED
edited tags
Oct 23, 2012 at 7:29 answer added Luc Franken timeline score: 5
Oct 23, 2012 at 7:23 answer added mouviciel timeline score: 17
Oct 23, 2012 at 7:23 comment added Qix - MONICA WAS MISTREATED @Simon I mean does having a private method as opposed to a public method give you any sort of advantage as far as how the program works or functions?
Oct 23, 2012 at 7:21 comment added Simon Bergot what do you mean by functional gain? can you give an example?
Oct 23, 2012 at 7:18 history asked Qix - MONICA WAS MISTREATED CC BY-SA 3.0