Nested Classes: A useful tool or an encapsulation violation?
Posted
by
Bryan Harrington
on Programmers
See other posts from Programmers
or by Bryan Harrington
Published on 2011-01-05T22:27:41Z
Indexed on
2011/01/05
22:59 UTC
Read the original article
Hit count: 338
So I'm still on the fence as to whether or not I should be using these or not.
I feel its an extreme violation of encapsulation, however I find that I am able to achieve some degree of encapsulation while gaining more flexibility in my code.
Previous Java/Swing projects I had used nested classes to some degree, However now I have moved into other projects in C# and I am avoid their use.
How do you feel about nested classes?
© Programmers or respective owner