<br><br><div class="gmail_quote">On Fri, Oct 12, 2012 at 2:23 PM, Joseph J Alotta <span dir="ltr">&lt;<a href="mailto:joseph.alotta@gmail.com" target="_blank">joseph.alotta@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a general rule for class and instance?<br>
<br>
For example, if there should be only one instance of an object, should it be a class object? <br></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
Or if I expect it to stay in memory and be available all the time, should it be a class object?<br>
<br>
Thank you.<br>
<br></blockquote><div><br>There are answers to these questions, but the depend on the context. That&#39;s not an answer you want to hear. But here&#39;s a question you should ask: when do I need an instance and when do I need a class? Try this:<br>
<br>aClassOfYourChoice allInstances explore<br><br>highlight and do that. Take a class like:<br><br>Point allInstances explore<br><br>See what&#39;s going on in those instances. That&#39;ll start to show you the jobs of instances. <br>
I don&#39;t know if that helps, but it came to mind. :)<br><br>Chris <br></div></div><br>