What type of variable should be used to store data that is important throughout an object's lifespan?
- A.A reference variable
- B.A method variable
- C.An instance variable
- D.A parameter variable
Show answer
Answer: C. An instance variable
Instance variables are bound to the object and persist throughout its lifecycle.