Wednesday, 8 August 2012

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

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 instantiation of the class
D. No memory is allocated for static members of a class

Ans: A

No comments: