Object-Oriented Programming (OOP)
Identify the correct concept described as: a variable defined in a class for which each object of that class maintains its own separate copy.
- A. Instance variable ✓
- B. Data hiding
- C. Super keyword
- D. Message passing
Correct answer
A. Instance variable
Explanation
Instance variable refers to a variable defined in a class for which each object of that class maintains its own separate copy.