About: Downcasting

An Entity of Type: Band, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

In class-based programming, downcasting or type refinement is the act of casting a reference of a base class to one of its derived classes. In many programming languages, it is possible to check through type introspection to determine whether the type of the referenced object is indeed the one being cast to or a derived type of it, and thus issue an error if it is not the case. In other words, when a variable of the base class (parent class) has a value of the derived class (child class), downcasting is possible. Some languages, such as OCaml, disallow downcasting.

Property Value
dbo:abstract
  • In class-based programming, downcasting or type refinement is the act of casting a reference of a base class to one of its derived classes. In many programming languages, it is possible to check through type introspection to determine whether the type of the referenced object is indeed the one being cast to or a derived type of it, and thus issue an error if it is not the case. In other words, when a variable of the base class (parent class) has a value of the derived class (child class), downcasting is possible. Some languages, such as OCaml, disallow downcasting. (en)
  • В объектно-ориентированном программировании понижающее приведение (англ. downcasting) или «уточнение типа» (англ. type refinement) — акт приведения типа, ссылающегося на базовый класс, к одному из его производных классов. В большинстве языков программирования, как правило, существует возможность выполнять проверку при помощи механизма RTTI, был ли приведён нужный тип ссылающегося объекта или порождён производный тип, и таким образом, происходит ошибка, если это не так. (ru)
dbo:wikiPageExternalLink
dbo:wikiPageID
  • 11800512 (xsd:integer)
dbo:wikiPageLength
  • 5040 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1067021366 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
gold:hypernym
rdf:type
rdfs:comment
  • In class-based programming, downcasting or type refinement is the act of casting a reference of a base class to one of its derived classes. In many programming languages, it is possible to check through type introspection to determine whether the type of the referenced object is indeed the one being cast to or a derived type of it, and thus issue an error if it is not the case. In other words, when a variable of the base class (parent class) has a value of the derived class (child class), downcasting is possible. Some languages, such as OCaml, disallow downcasting. (en)
  • В объектно-ориентированном программировании понижающее приведение (англ. downcasting) или «уточнение типа» (англ. type refinement) — акт приведения типа, ссылающегося на базовый класс, к одному из его производных классов. В большинстве языков программирования, как правило, существует возможность выполнять проверку при помощи механизма RTTI, был ли приведён нужный тип ссылающегося объекта или порождён производный тип, и таким образом, происходит ошибка, если это не так. (ru)
rdfs:label
  • Downcasting (en)
  • Rzutowanie w dół (pl)
  • Понижающее приведение (ru)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License