Messages can be used to: Give an object some information Ask an object for information (usually about itself) o a method is something inside the object that responds to your messages o messages contain commands to do something. O Object: an instance, or member of a class you can only create Jeroos in your code.
Messages can be used to: Give an object some information Ask an object for information (usually about itself) o a method is something inside the object that responds to your messages o messages contain commands to do something. O Object: an instance, or member of a class you can only create Jeroos in your code.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
Messages can be used to: Give an object some information Ask an object for information (usually about itself) o a method is something inside the object that responds to your messages o messages contain commands to do something. O Object: an instance, or member of a class you can only create Jeroos in your code.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
o Messages can be used to: Give an object some information Tell an object to do something Ask an object for information (usually about itself) Any and all combinations of the above o A method is something inside the object that responds to your messages A message contains commands to do something • Vocabulary Review o Class: the type, or description, of an object Jeroo classes are descriptions of: Island, water, flower, net, Jeroo o Constructor: a way to create an object. Comes as part of the class definition. o Object: an instance, or member, of a class You can only create Jeroos in your code; all other objects must be created visually. o Message: something you “say” to an object, either telling it something or asking it for information o Parameter: information sent to a method (information inside the parenthesis) •