Squeak Flashcards

1
Q

Where is the method == implemented?

A

ProtoObject

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

Where is the method = first defined?

A

in Object

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

What copy methods exist in squeak?

A

shallowCopy
twoLevelCopy - shallow copy on each field
deepCopy
copy - either shallow or deep
postCopy - By overriding postCopy one can make copies of
members that must not be shared.

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

do all objects in squeak have ref semantics?

A

yes. except SmallInteger and ByteSymbol.

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

What message is sent when a method isn’t found?

A

doesNotUnderstand

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

What’s the difference between isMemberOf and isKindOf?

A

isKindOf also includes inheriting classes.

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

What are instance variables?

A

defined in the class.

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

What are class variables?

A
defined in the meta-class
Like static variables in C++/Java
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are Class-Instance Variables?

A

Instance variables for the class object.

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

Where is ‘new’ first defined?

A

Behaviour

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

Who overrides ‘new’?

A

Meta-classes

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

How do we make sure that every meta-class is a singleton?

A

we override new in Metaclass

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