Classes Flashcards

1
Q

EasyReader keyboard = new EasyReader();
keyboard is a location in memory where a ….. is stored because its type is a ____?

A

pointer to an object. class

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

is the String a class, yes or no?

A

yes

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

what is unique about String

A

it’s only sort of object that can be instantiated without the ‘new’ keyword

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

method overloading

A

when multiple methods can have the same name with different parameters

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

basic type variables store…

A

an actual value

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

class variables store a…

A

pointer to an object

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

“Sheffield”.substring(0) returns

A

Sheffield

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