Object-Oriented Programming (OOP)
In computer science, Static member refers to which of the following?
- A. The practice of restricting direct access to an object's internal data to protect it from unintended interference.
- B. A mechanism where the method to be executed is determined at runtime rather than at compile time.
- C. A design pattern that restricts the instantiation of a class to a single shared object.
- D. A class member that belongs to the class itself rather than to any individual object instance. ✓
Correct answer
D. A class member that belongs to the class itself rather than to any individual object instance.
Explanation
Static member refers to a class member that belongs to the class itself rather than to any individual object instance.