In the following program:
class Main { static string staticVariable = "Static Variable"; string instanceVariable = "Instance Variable"; public Main(){} }
instanceVariable will be stored in the memory allocated for the object instance. Where will staticVariable be stored, is it stored in an instance of the object, or somewhere else? If it is stored somewhere else, how are the memory cells connected?
gk. Dec 03 '08 at 13:01 2008-12-03 13:01
source share