Q. How many copies of a class static member are shared between objects of the class? (Solved)

1. a copy of the static member is shared by all objects of a class

2. a copy is created only when at least one object is created from that class

3. a copy of the static member is created for each instntiation of the class

4. no memory is allocated for static members of a class

  • c. a copy of the static member is created for each instntiation of the class
Subscribe Now

Get All Updates & News