Member variable

Member variable

In object-oriented programming, a member variable (sometimes called a member field) is a variable that is associated with a specific class, and accessible for all its methods. If there is only one copy of the variable shared with all instances of the class, it is called a class variable or static member variable. If each instance of the class has its own copy of the variable, the variable is called an instance variable.[1]

References

  1. ^ Richard G. Baldwin (1999-03-10). "Q - What is a member variable?". http://www.dickbaldwin.com/: Richard G Baldwin Programming Tutorials. http://www.dickbaldwin.com/java/Java020.htm. Retrieved 2011-08-12. "A member variable is a member of a class (class variable) or a member of an object instantiated from that class (instance variable). It must be declared within a class, but not within the body of a method of the class." 

See also



Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Member — A member is a person who belongs to a social group or an entity such as a company or nation. By extension it can refer to any part of a whole. Member may also refer to: Elected official Member of Parliament Element (mathematics), an object that… …   Wikipedia

  • Variable star — A star is classified as variable if its apparent brightness as seen from Earth changes over time, whether the changes are due to variations in the star s actual luminosity, or to variations in the amount of the star s light that is blocked from… …   Wikipedia

  • variable star — Astron. a star that varies markedly in brightness from time to time. Also called variable. [1780 90] * * * Star whose observed brightness varies noticeably in intensity. Pulsating variables expand and contract in cycles, pulsating rhythmically in …   Universalium

  • Variable Geo — This article refers to the video game series, for the OVAs, see Variable Geo (anime). Variable Geo Front cover of V.G.: Variable Geo for the PC 9801, the first title of the series. Developer(s) Gig …   Wikipedia

  • variable — variability, variableness, n. variably, adv. /vair ee euh beuhl/, adj. 1. apt or liable to vary or change; changeable: variable weather; variable moods. 2. capable of being varied or changed; alterable: a variable time limit for completion of a… …   Universalium

  • variable — (logic) A fundamental notion of modern logic. Intuitively, suppose we have a class of objects about which we might be interested (a domain), and we start with a simple sentence ‘Jane is hungry’. We then strike out mention of Jane, leaving a gap… …   Philosophy dictionary

  • variable — var•i•a•ble [[t]ˈvɛər i ə bəl[/t]] adj. 1) apt to vary; changeable 2) capable of being varied 3) inconstant; fickle 4) having much variation or diversity 5) deviating from the usual type, as a species 6) astron. (of a star) changing in brightness …   From formal English to slang

  • Variable Geometry —   The possibility of common policies being developed and implemented at different rates by the Member States, depending upon their degree of commitment to each policy …   Glossary of the European Union and European Communities

  • Class variable — In object oriented programming with classes, a class variable is a variable defined in a class (i.e. a member variable) of which a single copy exists, regardless of how many instances of the class exist.[1][2][3] …   Wikipedia

  • Continuous variable valve timing — offers a unique ability to have independent control of the intake and exhaust valves in an internal combustion engine. For any engine load criteria, the timing of intake and exhaust can be independently programmed [1]. The main variations of… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”