Question: If you declare a variable as an instance variable within a class, and you declare and use the same variable name within a method of
If you declare a variable as an instance variable within a class, and you declare and use the same variable name within a method of the class, then within the method, _____________.
a. The variable used inside the method takes precedence
b. The class instance variable takes precedence
c. The two variables refer to a single memory address
d. An error will occur
Step by Step Solution
3.43 Rating (166 Votes )
There are 3 Steps involved in it
a The vari... View full answer
Get step-by-step solutions from verified subject matter experts
