CM UNIT 2 Flashcards

1
Q

arguments for draw rect

A

start x, start y, width, height

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

arguments for draw line

A

start x, start y, end x, end y

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

arguments for fill react

A

start x, start y, width, height

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

arguments for draw oval

A

start x, start y, width, height

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

arguments for fill oval

A

start x, start y, width, height

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

Turtle movement

A

turnLeft
turnRight
Forward
Back

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

what method sets the turtle pen color

A

Set Color

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

what does SetPenDown do

A

SetPenDown(true)

will draw line as turtle moves.

SetPenDown(false)

will not draw a line as turtle moves.

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

what does accessor methods do?

A

returns value of object field

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

what does accessor method look like

A

public int getx()

starts with get

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

What does modifier method do?

A

Changes value of object field

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

What does modifier method look like

A

public void setx(int x)

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

what are access modifiers

A

specify which class can see field or method

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

what does public keyword do

A

Any class can see or access method

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

what does private keyword do

A

Only class that field is defined can see or access the method.

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

what does static keyword mean

A

The field or method belongs to the class

17
Q

what does it mean to buffer drawing commands?

A

To draw into memory rather than directly into screen

18
Q

What are abstract methods

A

methods with no code only a header

19
Q

what are abstract classes

A

A class with at least 1 abstract method

20
Q

What is the timer class used for

A

Generating an event every set time interval

21
Q

What is listener

A

A listener is an object that handles an event through the action performed method