COMPSCI 61A Midterm: Midterm Notes part 6
zogo39484755 and 6 others unlocked
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
Message passing : objects interacting by looking up each others attributes attribute look - up mes allow diff types to respond to the same image just with same attribute name. :( attribute name : elicits similar behavior from diet classes along with a specification. What they mean example : strand rpr in any clad has same behavior. Names ex : init blah . invoked interacts with built in object system in some way automatically when an objeut is constructed reph : display an object as a python expression. 11 one two bookendsboollohdzew one . boo , . one . Ot interface if change add then can use @and this is changed. Has a length and element selection ex a list is a kind of built in sequence. Special method names getitem - and leh base. Link ( 3 link ( 4 link empty ) * @ property removes need for when calling a method with se.