0916 - Introduction to Programming Languages and Techniques...

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

View Full Document Right Arrow Icon
Introduction to Programming Languages and Techniques Juggling object references
Background image of page 1

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

View Full DocumentRight Arrow Icon
9/16/08 CIS 120 2 Announcements If you are not getting emails on the class mailing list, let me know Let me and Jay know about any remaining registration problems 1st HW (was) due at 11AM today Can still be handed in (with 20% penalty) until tomorrow at 11AM
Background image of page 2
Next HW assignment To be announced later today Due next Friday (the 25 th ) at 11am More challenging than HW1 — do not wait till the last minute to start it! 9/16/08 CIS 120 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
WICS W omen i n C omputer S cience Intro meeting tonight Place: Levine 315 Date: Wednesday, September 17 th Time: 9:00-10:30pm All women and men cordially invited Catered by Naked Chocolate ! 9/16/08 CIS 120 4
Background image of page 4
JUGGLING OBJECT REFERENCES 9/16/08 CIS 120 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
9/16/08 CIS 120 6 Programming models Object-oriented : computation as object communication through method calls Functional : computation as combination of mathematical functions Iterative : computation as repeated application of calculation steps to memory Reactive : computation as message exchange between ongoing processes … choose the right model for the task
Background image of page 6
9/16/08 CIS 120 7 Object-oriented programming More than just data structuring and memory management Tie computation to the objects it works on Real world Program Entity Object Entity attributes/state Instance variables State functions Accessor (query) methods State change Mutator (command) methods
Background image of page 7

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

View Full DocumentRight Arrow Icon
9/16/08 CIS 120 8 Object-oriented modeling Data : interconnected objects Behaviors : organized as methods in the classes of these objects Program : a collection of interacting classes Goal: Recognize and model useful relationships among object classes
Background image of page 8
9/16/08 CIS 120 9 State encapsulation The idea of OOP is that all instance variables are accessed and modified through methods An object encapsulates a set of variables that change state in coordination.
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 44

0916 - Introduction to Programming Languages and Techniques...

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

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