answersLogoWhite

0

In computer science, polymorphism means allowing a single definition to be used with different types of data (specifically, different classes of objects). For instance, a polymorphic function definition can replace several type-specific ones, and a single polymorphic operator can act in expressions of various types. Many programming languages and paradigms implement some forms of polymorphism; for a popular example, see polymorphism in object-oriented programming. The concept of polymorphism applies to data types in addition to functions. A function that can evaluate to and be applied to values of different types is known as a polymorphic function. A data type that contains elements of different types is known as a polymorphic data type. There are two fundamentally different kinds of polymorphism, as first informally described by Christopher Strachey in 1967. If the range of actual types that can be used is finite and the combinations must be specified individually prior to use, it is called ad-hoc polymorphism. If all code is written without mention of any specific type and thus can be used transparently with any number of new types, it is called parametric polymorphism. In their formal treatment of the topic in 1985, Luca Cardelli and Peter Wegner later restricted the term parametric polymorphism to instances with type parameters, recognizing also other kinds of universal polymorphism. Programming using parametric polymorphism is called generic programming, particularly in the object-oriented community. Advocates of object-oriented programming often cite polymorphism as one of the major benefits of that paradigm over others. Advocates of functional programming reject this claim on the grounds that the notion of parametric polymorphism is so deeply ingrained in many statically typed functional programming languages that most programmers simply take it for granted. However, the rise in popularity of object-oriented programming languages did contribute greatly to awareness and use of polymorphism in the mainstream programming community.

User Avatar

Wiki User

∙ 17y ago
User Avatar

What else can I help you with?

Related Questions

Are diamonds and graphite both polymorphs of pure silicon?

No, diamonds and graphite are not polymorphs of silicon. Diamonds are a polymorph of carbon, while graphite is also a polymorph of carbon. Silicon does not form diamonds or graphite as polymorphs.


What will cause when Polymorphs ia 85 percentage in your blood?

What happens if the polymorphs is 85 % in the blood?


What are the polymorphs of ascorbic acid?

The polymorphs of ascorbic acid are the different crystalline forms that the molecule can adopt. Common polymorphs of ascorbic acid include forms such as alpha, beta, gamma, and delta. These polymorphs have different arrangements of molecules within their crystal lattice structures.


Minerals with the same chemical formula but different crystal lattice structure are referred to as?

polymorphs


What is readily form silica tetrahedrons?

polymorphs


What is the normal value of polymorphs?

what is meant by polymorph


Does moon stone have any polymorphs?

i think so


What are the different polymorphs of zirconia?

The three main polymorphs of zirconia are monoclinic, tetragonal, and cubic. The phase transformation between these polymorphs is influenced by factors such as temperature, stress, and the presence of stabilizing dopants. Tetragonal zirconia is commonly stabilized with elements like yttria to prevent the transformation to the less stable monoclinic form.


Are quartz and feldspar examples of polymorphs?

No, they are examples of silicate minerals. However, quartz is the collective name for a bunch of SiO2-polymorphs, like tridymite, coesite, alpha-quartz and beta-quartz. Likewise, K-feldspar is the collective name for the KAlSi3O8-polymorphs microcline, orthoclase and sanidine. Polymorphs are chemically identical, but differ in the crystallographic structure. To confuse it, each polymorph mentioned above is also a mineral ...


What happens when polymorphs percent in blood is more then normal?

fever


What cause a low polymorphs?

Infection could cause a low polymorphs or white blood cell count. Other causes may include vitamin deficiencies, certain medications, hypersplenism or radiation therapy.


What cause a low polymorphs count?

Infection could cause a low polymorphs or white blood cell count. Other causes may include vitamin deficiencies, certain medications, hypersplenism or radiation therapy.

Trending Questions
Is a platelet plug also a thrombus? Which one of the five choices makes the best comparison foot is to knee as hand is to? Your cycle varies normally from 26 to 29 days today is the 28th day you don't feel like you would have your periods this time because your lower abdominal pains are not there. Could you be pregnant? What do you call someone addicted to spicy food? Why did I have 2 spots of brown discharge 4 days before pd is due but have a negative hpt test today which is 2 days before pd is due. Has this happened to anyone else and they were still pg? When an image enters the peripheral vision of your left eye it is interpreted where? Your child is running a fever of 100.5 and he has impetigo can that be serious? Is the carotid artery the first vessel in the systemic circulatory system? When do you usually have your first scan in pregnancy? Which aponeurosis travels along the ventral abdominal midline? Does your belly ever hurt when your pregnant? Isabgol is advisable in the first trimester of pregnancy? Can the US force you to join the military? Is lemon jiice an acid or an alkali? The Golgi tendon organ GTO muscle spindle and Pacinian corpuscles make up the three primary? How much money the dental hygiene earn in Miami? What parts of the digestive system are shared with other systems? What are the catalytic enzymes called that the sequence of steps by which large food molecules are broken down into their respective building blocks? What cranial nerve that regulates most of the internal thoracic and abdominal organs? Do fish hiccup?