Content deleted Content added
Lindsey40186 (talk | contribs) v2.05 - Fix errors for CW project (Link equal to linktext) |
m To the definition of "Class variable", changed the phrase "only one copy of each one" to "only one copy of each variable, shared across all instances of the class" to improve clarity. |
||
Line 141:
Each object is said to be an [[instance (computer science)|instance]] of a particular class (for example, an object with its name field set to "Mary" might be an instance of class Employee). Procedures in object-oriented programming are known as [[Method (computer science)|methods]]; variables are also known as [[Field (computer science)|fields]], members, attributes, or properties. This leads to the following terms:
* [[Class variable]]s – belong to the ''class as a whole''; there is only one copy of each
* [[Instance variable]]s or attributes – data that belongs to individual ''objects''; every object has its own copy of each one
* [[Member variable]]s – refers to both the class and instance variables that are defined by a particular class
|