bluej Flashcards

(31 cards)

1
Q

instance

A

object

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

object bench

A

the area at the bottom part of the screen where the objects are

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

name of classes

A

Capital letters

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

name of objects

A

lower case letters

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

invoke

A

a method.

objects usually do something.

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

operations

A

methods

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

parameters

A

methods can have parameters to provide additional information for a task.
–defines a TASK and a NAME

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

header

A

viktig markering av var klasskoden börjar och heter.

the header of a method is called it’s SIGNATURE. it provides information needed to invoke that method.

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

data type

A

parameters have types.

the type defines what type of value a parameter can take.

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

comment

A

above method signature

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

multiple instances

A

many different objects can be created from the same class.

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

state

A

objects have a state.

– represented by storing values in fields.

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

object inspector

A

shows the state of an object

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

java refers to objects attributes as

A

fields

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

fields

A

are defined within a class

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

class

A

fields, methods, data types

17
Q

source code

A

determines the strukture and the behaviour of each of the objects in that class.

18
Q

results

A

methods may return information about an object via a return value.

19
Q

void

A

indicates that this method does not return any results.

20
Q

mellan första och sista { }

A

outer wrapping

21
Q

camel casing

A

ex. iPhone eBay

22
Q

instansvariabel

23
Q

variabel

A

något som kan ändras.

namngett objekt med okänt värde.

24
Q

identifierare (variabelnamn)

A

allows the program to refer to the item from other places in the program by giving it a set name.

25
metodsignatur
method name + parameters list
26
Accessors
getters
27
Mutators
setters
28
konstruktor
- har samma namn som klassen - returnerar inte ETT värde - publik åtklomstmodifierare
29
hur ser man vad som är ett reserverat ord?
de har färgad text
30
vilken färg har the outer wrapping?
grön
31
varför ska man deklarera en variabel?
skapar plats att lagra data