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

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

0 comments:

Post a Comment

Blogger news