20090916-ObjectsInJava

20090916-ObjectsInJava - Click to edit Master subtitle...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Click to edit Master subtitle style CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall NEW 645-4739 NEW [email protected] 11 Agenda • Cell phones off & name signs out • Review • Questions? • Objects • The birds-and-the-bees talk • Communicating with objects Review • Software development is an iterative and incremental process. • OO software systems are systems of interacting objects. • Objects have – properties: things objects know • (think of the counting object last class) – behaviors: things objects do How do we create objects? – new example1.Terrarium() – There are three parts to this expression: • new • example1.Terrarium • () Let’s try it! • We use a tool called Eclipse… • …and a plug-in for Eclipse called DrJava Eclipse tour • terminology – view: a subwindow in Eclipse – perspective: a collection of views • Eclipse: a framework for building tools – Eclipse is extended via plug-ins – a plug-in: Java Development Tools (JDT) – others: DrJava, Green, CDT, … Expression evaluation • evaluating new example1.Terrarium() – causes an object to be created and initialized – produces a value (part of) memory 107 108 109 110 111 112 113 114 115 evaluating a ‘new’ expression used available available available available available available available used 107 108 109 110 111 112 113 114 115 When evaluating an expression like ‘new example1.Terrarium()’, the operator ‘new’ first determines the size of the...
View Full Document

This note was uploaded on 02/13/2011 for the course CSE 115 taught by Professor Decker during the Fall '08 term at SUNY Buffalo.

Page1 / 23

20090916-ObjectsInJava - Click to edit Master subtitle...

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