Instantiation

Instantiation

Instance (programmation)

Page d'aide sur l'homonymie Pour les articles homonymes, voir instance.

En programmation orientée objet, on appelle instance d'une classe, un objet avec un comportement et un état, tous deux définis par la classe. Dans ce contexte, instance est un anglicisme, qui signifie « cas », « exemple ».

L'instanciation est l'action d'instancier, de créer un objet à partir d'un modèle. Elle est réalisée par la composition de deux opérations : l'allocation et l'initialisation. L'allocation consiste à réserver un espace mémoire au nouvel objet. L'initialisation consiste à fixer l'état du nouvel objet. Cette opération fait par exemple appel à l'un des constructeurs de la classe de l'objet à créer. La modification de ces opérations permet de réaliser la réflexion structurelle.

En programmation orientée classe, l'instanciation est la création d'un objet à partir d'une classe. En programmation orientée prototype, l'instanciation consiste à créer un nouvel objet à partir d'un objet existant.

Voir aussi

Wiktprintable without text.svg

Voir « instanciation » sur le Wiktionnaire.

  • Portail de la programmation informatique Portail de la programmation informatique
Ce document provient de « Instance (programmation) ».

Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Instantiation de Wikipédia en français (auteurs)

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

Regardez d'autres dictionnaires:

  • Instantiation — or instance may be *Philosophy::*A concept in Platonism, see idea :* Instantiation principle the idea that if properties exist, the essence that has the properties must necessarily exist:* Universal instantiation and existential instantiation ,… …   Wikipedia

  • Instantiation principle — The instantiation principle is a concept in philosophy that states that if something has a property, then necessarily that something must exist. For it not to exist would be a property without an essence, which is impossible.For example, an apple …   Wikipedia

  • Instantiation universelle — Instanciation universelle En logique, l instanciation universelle (également appelée Dictum de omni) est une règle d inférence qui permet, à partir d une vérité sur l ensemble des membres d une classe d entités, d inférer une vérité sur une… …   Wikipédia en Français

  • instantiation — noun see instantiate …   New Collegiate Dictionary

  • instantiation — See instantiate. * * * …   Universalium

  • instantiation — noun something instantiated; an instance See Also: instance, instancy, instant, instantaneous, instantiate …   Wiktionary

  • instantiation — n. act of providing evidence to support a claim, act of supporting with an example; act of producing a more specifically defined object by replacing some variables with values (Computer Programming) …   English contemporary dictionary

  • instantiation — in·stan·ti·a·tion …   English syllables

  • instantiation — noun a representation of an idea in the form of an instance of it how many instantiations were found? • Derivationally related forms: ↑instantiate • Hypernyms: ↑representation, ↑mental representation, ↑internal representation …   Useful english dictionary

  • Null instantiation — In frame semantics, a theory of linguistic meaning, null instantiation is the name of a category used to annotate, or tag, absent semantic constituents or frame elements (Fillmore et al. 2003, Section 3.4). Frame semantics, best exemplified by… …   Wikipedia

Share the article and excerpts

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