How Attributes and Methods Differ

Attributes are similar in many ways to methods. Both are part of a type's definition. Both return an object, and have no defined side effects. Here are some basic differences:

(More about attributes.)

(More about methods.)

spok@cs.cmu.edu (Last updated 12-Apr-96)