stoop questions

Post on 27-Nov-2014

505 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Some Questions

S.Ducasse 2

The true behing new...Box class>>new

| instance | instance := super new. instance initialize. ^ instance

Box new

S.Ducasse 3

bindings...aBox borderWidth: 5

borderWidth: width self border: width

S.Ducasse 4

Fun with super

A>>foo

^ self class == super class

foo() this.class().getName().equals(super.class().getName())

top related