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

In programming languages, ad hoc polymorphism is a kind of polymorphism in which polymorphic functions can be applied to arguments of different types, because a polymorphic function can denote a number of distinct and potentially heterogeneous implementations depending on the type of argument(s) to which it is applied. When applied to object-oriented or procedural concepts, it is also known as function overloading or operator overloading. The term ad hoc in this context is not intended to be pejorative; it refers simply to the fact that this type of polymorphism is not a fundamental feature of the type system. This is in contrast to parametric polymorphism, in which polymorphic functions are written without mention of any specific type, and can thus apply a single abstract implementation t

Property Value
dbo:abstract
  • En els llenguatges de programació, un polimorfisme ad hoc és un tipus de polimorfisme en el qual les funcions polimòrfiques es poden aplicar a diferents tipus d'arguments. Una funció polimòrfica pot tenir diverses implementacions diferents i potencialment heterogenis depenent del tipus d'arguments als quals s'aplica. En el polimorfisme ad-hoccal que s'especifiqui quins tipus de dades es poden usar. Això està en contrast amb el polimorfisme paramètric (també anomenat genericitat), en el qual les funcions polimòrfiques s'escriuen sense la menció de qualsevol tipus específic, i per tant pot aplicar una única implementació abstracta a qualsevol nombre de tipus d'una manera transparent. Aquesta classificació va ser introduïda per Christopher Strachey en 1967. El polimorfisme ad-hoc s'aconsegueix gràcies al: subtipatge, sobreescriptura i sobrecàrrega de mètodes i lligam dinàmic missatge-mètode. (ca)
  • In programming languages, ad hoc polymorphism is a kind of polymorphism in which polymorphic functions can be applied to arguments of different types, because a polymorphic function can denote a number of distinct and potentially heterogeneous implementations depending on the type of argument(s) to which it is applied. When applied to object-oriented or procedural concepts, it is also known as function overloading or operator overloading. The term ad hoc in this context is not intended to be pejorative; it refers simply to the fact that this type of polymorphism is not a fundamental feature of the type system. This is in contrast to parametric polymorphism, in which polymorphic functions are written without mention of any specific type, and can thus apply a single abstract implementation to any number of types in a transparent way. This classification was introduced by Christopher Strachey in 1967. (en)
  • Ad hoc поліморфізм — один із видів поліморфізму у програмуванні, коли функції з однаковою назвою реалізовують схожу логіку для різних типів вхідних параметрів. Ad hoc поліморфізм підтримується у багатьох мовах через перевантаження функцій та перевантаження операторів. Термін ad hoc використовується, щоб відрізнити цей вид поліморфізму від , у якому логіка функції пишеться тільки один раз і без знання типів, які будуть із нею використовуватись. Ad hoc поліморфізм може доповнювати параметричний поліморфізм, коли для деяких типів потрібна окрема реалізація. Це допомагає вирішити проблеми загального алгоритму, але може порушити узгодженість коду. В С++ така суміш можлива при * спеціалізації шаблону функції чи класу, * частковій спеціалізації шаблону класу. (uk)
  • 特设多态(ad hoc polymorphism)是程序设计语言的一种多态,多态函数有多个不同的实现,依赖于其实参而调用相应版本的函数。因此,特设多态仅支持有限数量的不同类型。函数重载乃至运算符重载也是特设多态的一种。 (zh)
dbo:wikiPageID
  • 390418 (xsd:integer)
dbo:wikiPageLength
  • 7316 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1092880989 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
gold:hypernym
rdf:type
rdfs:comment
  • 特设多态(ad hoc polymorphism)是程序设计语言的一种多态,多态函数有多个不同的实现,依赖于其实参而调用相应版本的函数。因此,特设多态仅支持有限数量的不同类型。函数重载乃至运算符重载也是特设多态的一种。 (zh)
  • En els llenguatges de programació, un polimorfisme ad hoc és un tipus de polimorfisme en el qual les funcions polimòrfiques es poden aplicar a diferents tipus d'arguments. Una funció polimòrfica pot tenir diverses implementacions diferents i potencialment heterogenis depenent del tipus d'arguments als quals s'aplica. En el polimorfisme ad-hoccal que s'especifiqui quins tipus de dades es poden usar. Això està en contrast amb el polimorfisme paramètric (també anomenat genericitat), en el qual les funcions polimòrfiques s'escriuen sense la menció de qualsevol tipus específic, i per tant pot aplicar una única implementació abstracta a qualsevol nombre de tipus d'una manera transparent. Aquesta classificació va ser introduïda per Christopher Strachey en 1967. (ca)
  • In programming languages, ad hoc polymorphism is a kind of polymorphism in which polymorphic functions can be applied to arguments of different types, because a polymorphic function can denote a number of distinct and potentially heterogeneous implementations depending on the type of argument(s) to which it is applied. When applied to object-oriented or procedural concepts, it is also known as function overloading or operator overloading. The term ad hoc in this context is not intended to be pejorative; it refers simply to the fact that this type of polymorphism is not a fundamental feature of the type system. This is in contrast to parametric polymorphism, in which polymorphic functions are written without mention of any specific type, and can thus apply a single abstract implementation t (en)
  • Ad hoc поліморфізм — один із видів поліморфізму у програмуванні, коли функції з однаковою назвою реалізовують схожу логіку для різних типів вхідних параметрів. Ad hoc поліморфізм підтримується у багатьох мовах через перевантаження функцій та перевантаження операторів. Термін ad hoc використовується, щоб відрізнити цей вид поліморфізму від , у якому логіка функції пишеться тільки один раз і без знання типів, які будуть із нею використовуватись. В С++ така суміш можлива при * спеціалізації шаблону функції чи класу, * частковій спеціалізації шаблону класу. (uk)
rdfs:label
  • Polimorfisme ad hoc (ca)
  • Ad hoc polymorphism (en)
  • Ad-hoc-полиморфизм (ru)
  • Ad hoc поліморфізм (uk)
  • 特设多态 (zh)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageDisambiguates of
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