20090916-ObjectsInJava

20090916-ObjectsInJava - CSE115:Introductionto...

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

View Full Document Right Arrow Icon
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
Image of page 1

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

View Full Document Right Arrow Icon
Agenda Cell phones off  &  name signs out Review Questions? Objects The birds-and-the-bees talk Communicating with objects
Image of page 2
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
Image of page 3

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

View Full Document Right Arrow Icon
How do we create objects? new example1.Terrarium() There are three parts to this expression: new example1.Terrarium ()
Image of page 4
Let’s try it! We use a tool called Eclipse… …and a plug-in for Eclipse called  DrJava
Image of page 5

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

View Full Document Right Arrow Icon
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, …
Image of page 6
Expression evaluation evaluating  new example1.Terrarium() causes an object to be created and initialized produces a value
Image of page 7

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

View Full Document Right Arrow Icon
(part of) memory 107 108 109 110 111 112 113 114 115
Image of page 8
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 object to be created (let us say it is four byte for the sake of this example)
Image of page 9

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern