C++ MQCs with Explanation (CHAPTER 5: CLASSES AND OBJECTS

Which of the following is TRUE about static member variable of a calss?

  1. Each object creates its own copy
  2. It is visible only within the class
  3. It can be initialized whenever necessary
  4. It cannot be assigned any initial value at the time of definition



Answer: 
Option a: Each object creates its own copy

Explanation Here

Post a Comment

0 Comments