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

Re: Local Classes within Global Classes

$
0
0

Hi Justin,

 

I liked Suhas answer for this (unfortunately unusual) good question.

 

My answer is that there is not a clear advantage per se; it will depend on your use case. Another use case is to create an local exception class, as I show: Local exception class in global class - the trick

 

But I believe most of the times private methods will do the trick.

 

Regards,

Custodio


Viewing all articles
Browse latest Browse all 8082

Trending Articles



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