when does static member gets memory.

Posted by vaibhav on Stack Overflow See other posts from Stack Overflow or by vaibhav
Published on 2010-04-16T08:13:31Z Indexed on 2010/04/16 8:23 UTC
Read the original article Hit count: 275

Filed under:
|
|

I have a class which have a static member. As I understand all static members are common for all instance of the class. So it means static members would get memory only once. Where is this memory is allocated (Stack or Heap) and when this memory get allocated.

© Stack Overflow or respective owner

Related posts about oop

Related posts about .NET