• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

13 traits

on

  • 1,938 views

 

Statistics

Views

Total Views
1,938
Views on SlideShare
1,936
Embed Views
2

Actions

Likes
0
Downloads
15
Comments
0

1 Embed 2

http://www.orhowilearnedtolovetheperl.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Warning — toy example! Some real case study examples appear later.
  • Better would be: = aRectangle ^ self species = aRectangle species and: [self origin = aRectangle origin] and: [self corner = aRectangle corner]
  • NB: TRectangle only uses accessors to access state. The original Rectangle code may need to be adapted. Glue is needed to fulfil trait requirements, here implemented by accessors
  • See NSCollectionStream for a real example

13 traits 13 traits Presentation Transcript