The Objective-C Language
Subject:   Question
Date:   2001-05-08 15:12:51
From:   mikebeam
Response to: Question

Yes, yLocation is an instance variable for the class. "yLocation" the text is also part of the method name described. The reason i choose this name is to provide information about what the argument following the colon sets. you could have replaced "yLocation:(double)y" in the method declaration with "locationOfYCoordinate:(double)y" if you wanted. I just choose "yLocation" because ultimately that is the instance variable being set to the value of the second argument in this method.

hope that helps clear things up!


1 to 1 of 1
  1. Question
    2001-05-10 14:41:38  kcrawford [View]

    • Michael Beam photo Question
      2001-05-11 06:13:54  Michael Beam | O'Reilly Author [View]

      • Question
        2001-05-11 09:19:15  kcrawford [View]

1 to 1 of 1