What is different about the machine after this method

This preview shows page 7 - 10 out of 12 pages.

What is different about the machine after this method succeeds? (postcondition) What principles must remain true in the machine throughout this sequence (invariant) – hint: what must balance?
Image of page 7

Subscribe to view the full document.

Terminology We’ve already gone over many of these: Method (functions within a class, like getters and setters, among others) Member variable (int’s, Strings, etc. defined within a class) Exception (a catchable error) Class – a template or a blueprint for an abstract machine Object – an instance of the machine, constructed from the blueprint (class). Constructor – specialized method to build an object from a particular class Garbage collection (Mondays and Thursdays in my neighborhood…) automatic reclamation of the memory from now unused objects, performed by Java. Parameter – a formal or actual argument to a method – same as with any function in C or other languages.
Image of page 8
About the Meyer article Bertrand Meyer is one of the big names in OO. Others would be Booch, Jacobson, Rumbaugh The article I posted in WebCt is a chapter from Meyer’s book on OO. His is the only article I have seen that really talks about how to find the classes, and how to avoid finding the wrong ones.
Image of page 9

Subscribe to view the full document.

Image of page 10
You've reached the end of this preview.

{[ 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