{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

07-07feb13stepwiseRefinement

07-07feb13stepwiseRefinement - C S100J In s id e-o u t ru...

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

View Full Document Right Arrow Icon
1 1 CS100J 13 February 2007 More on Methods. Developing methods. Also: The inside-out rule; and the use of this and super. Read section 2.5 on stepwise refinement Listen to PLive activities 2.5.1 -- 2.5.4! Quotes that relate to specifying a method before writing it. A verbal contract isn't worth the paper it's written on. What is not on paper has not been said. If you don't know where you are going, any road will take you there. If you fail to plan you are planning to fail. Don’t try to solve a problem until you know what the problem is. Prelim Thursday, 22 February 7:30 to 9:00. 2 Inside-out rule Inside-out rule in most programming languages (see p. 83): Code in a construct can reference any of the names declared or defined in that construct, as well as names that appear in enclosing constructs (unless a name is declared twice, in which case the closer one prevails). File drawer for class Elephant Elephant a0 name getName() { return name;} Elephant a0 name getName() { return name;} ElephantPop 3 Inside-out rule Inside-out rule in most programming languages (see p. 83): Code in a construct can reference any of the names declared or defined
Image of page 1

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

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