Changes

429 bytes added ,  13:49, December 10, 2008
New page: An '''instance variable''' is available only to one instance of a class. It is the object's own property. For example, a particular square may be 4 inches wide. Other squares may have diff...
An '''instance variable''' is available only to one instance of a class. It is the object's own property. For example, a particular square may be 4 inches wide. Other squares may have different widths.

A [[class variable]], by contrast, is available to all instances of a class. It is a property which is the same for all objects. For example, the interior angle of every square is 90 degrees, no matter how wide the square is.
Siteadmin, Check users, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight, Administrators
30,650

edits