Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8927

Re: Local Classes within Global Classes

$
0
0

I use local classes when I need something doing that can be encapsulated, but tightly linked to the main class. If it isn't tightly linked, then I'll use a global class.

 

If you use a private method to achieve the same, without creating another class, then you are not encapsulating the complexity. This may or may not be the correct approach. It depends on what you're trying to do.


Viewing all articles
Browse latest Browse all 8927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>