500pts: Which methods to implement in a class by default i.e ToString()?
Posted on 2006-11-29
I was looking for some b ackground info on what methods i should be implementing by default in my classes (or overriding)...
I remember seeing a document once outlining best practises ... what to override, what interfaces to use if you wish to use a foreach on your class etc... but i just can't find it...
I was wondering if anyone has any recommendations of what methods / properties I should be implementing /overriding by defautl?
Also currently i am always using and awful lot 'private' access modifiers on classes... should i really be using protected so it can be picked up in another class/derived class... i suppose this depends,, but it was just concerning me that all my classes contain private members etc
Look forward to any information..
Thanks in advance