lecture-12

lecture-12 - KQS results Person 1: Keep Throwing candy...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 KQS results • Person 1: “Keep Throwing candy” • Person 2: “Stop Throwing candy” • Person 1: “HW too easy!” • Person 2: “HW too hard!” • I read all of the KQS • I will keep all the comments in mind KQS: Broad Trends • Post assignments earlier (eg: not Monday) • Cover material earlier • Get grades in faster/put slides up faster • More tutor/office hours Let’s talk about objects • Namespaces == object • What ways have we seen of creating a namespace? • Go to code But this sucks • Why is this not good enough for object oriented programming? But this sucks • Why is this not good enough for object oriented programming? • Answer: can’t *create* new objects • Let’s see how that works. Go back to code Class-based model • Have classes that describe the format of objects • Create objects by stating the class of the object to be created. • The created object is called an instance of the class
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Class-based model • In a class based model, the class is sometimes an object too (as is the case in Python) • Q: what is the class of the class object? Class-based model • In a class based model, the class is sometimes an object too (as is the case in Python) • Q: what is the class of the class object? – The “meta-class”? But then do we have a meta-meta-class? – many possibilities, but no clear answer – turns out to be a nasty problem! What’s the alternative? • Suppose we didn’t have classes • How would one survive? Prototype-based models
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/08/2011 for the course CSE cse130 taught by Professor Cs during the Fall '10 term at UCSD.

Page1 / 6

lecture-12 - KQS results Person 1: Keep Throwing candy...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online