Question: Explain why a class might provide a set method and a get method for an instance variable.
Explain why a class might provide a set method and a get method for an instance variable.
Step by Step Solution
3.35 Rating (173 Votes )
There are 3 Steps involved in it
An instance variable is typically declared private in a class s... View full answer
Get step-by-step solutions from verified subject matter experts
