When should I create a nested class? Does it make instantiation of the outer class consume more resources?
<p>Sometimes I found someone's codes having nested classes.</p>

<p>When should I create a nested class? Does it make instantiation of the outer class consume more resources?</p>

<p>Thank  you in advance.</p>
