One research goal is to discern overall patterns that emerge from these detailed behaviors at the individual level. Agent-based modeling Object oriented programming is ideally suited to represent models of this sort. As we shall see, the objects are self-contained. The material presented here is intended as a summary or reminder of such a study, rather than a substitute. An object consists of two kinds of information Variables.
Methods determine what the object can do.
Variables and methods are given meaningful names, so code is easier to read. The custom is to run words together to make meaningful tags, such as goToStore or goHome . The information contained inside instance variables is available to all methods inside that object. In both Objective-C and Java, the term message is often used to refer to an instruction that tells an object to carry out one of its methods. Here is an example of a message that tells an object known as bobDole to execute its method runForPresident .