Week 15: Java Class and Java Field Variables Flashcards

1
Q

When we talk about a _____ we’re talking about the code itself, the code that sits around doing nothing.
When you put the code to work it’s an _____.

A

class; object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The variables you set up inside of methods are only available to those methods. They are not available to other methods. They are said to have ___ scope.

A

local

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

However, you can set up variables outside of methods that all the methods in your class can see. These are known as _______ (or Instance variables).

A

Field variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly