Multiple choice

Which of the following is not the characteristics of a static data member?

  1. All the objects share the single copy of a static variable.

  2. Static data members are always used in the non static member functions.

  3. On the creation of the first object of the class a static variable is always initialised by zero.

  4. The scope is only within the class, but its lifetime is throughout the program.

  5. It can be accessed using their class names, the scope resolution operator and their member names.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

It is not the characteristic of static data member because static data members are always used in the static member functions.