because you do not want other people to create instances of your class.
so why you create class and do not want others to create instances of
it? that's difficult to answer.

why you create a large class library, you may not want people use
whatever classes at whatever time. so you a way to control this. e.g.
you can have a static class serve as a manager, when some class has
new instance, it call inform the static one, then you can control how
many instances of a class can be created.

if you are new to OOP, just forget this question now. you will soon
figure out the best answer yourself as you learn.


On Thu, Apr 16, 2009 at 6:21 PM, VB <[email protected]> wrote:
>
> why I need to make a class static in c# and when ??
>
> Thanks :)



-- 
Best Regards,
David Shen

Reply via email to