If only one memory location is to be reserved for a class variable, no matter how many objects are instantiated, then the variable should be declared as
- A. extern
- B. static
- C. volatile
- D. const
Answer: B. static
Explanation: Static variables are shared among all instances of a class.