Sunday, July 20, 2014

How many copies of a class static member are shared between objects of the class?

A. A copy of the static member is shared by all objects of a class
B. A copy is created only when at least one object is created from that class
C. A copy of the static member is created for each instntiation of the class
D. No memory is allocated for static members of a class

Answer: A

No comments: