Share 'What is meant by Local variable and Instance variable?'
Local variables are defined in the method and scope of the variables that have existed inside the method itself.
An instance variable is defined inside the class and outside the method and scope of the variables exist throughout the class.
You can share this discussion in two ways…
Share this link:
Send it with your computer's email program: Email this