answersLogoWhite

0

What is polymorphism in programming?

Updated: 12/15/2022
User Avatar

Wiki User

13y ago

Best Answer

Polymorphism is the method in which a java program can have more than one function(or method) with the same name but different method signatures(different parameters or return type).

possible allowance:

void s()

void s(int a)

void s(int a,int b)

void s(float a)

int s()

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is polymorphism in programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is an essential of Object Oriented Programming?

The 3 essential concepts of Object Oriented Programming are:InheritanceEncapsulation &Polymorphism


In what study would one find polymorphism?

Polymorphism is the changing of one subject to an altered state. There are actually two areas of study where polymorphism would be particularly common: chemistry and web programming.


What are components of object oriented programming?

abstraction,encapsulation,inheritence,polymorphism,object


What is Dynamic Polymorphism?

Dynamic polymorphism is a programming method that makes objects with the same name behave differently in different situations. This type of programming is used to allow Java Scripts to run while playing a game on the computer, for example.


What is polymorphism and its types?

Polymorphism means multiple form of a function, variable or object. In Computer Science, polymorphism is a programming language feature that allows values of different data types to be handles using a common interface. There are three types : Ad-Hoc Polymosphism, Parametric Polymorphism, Subtype/Inclusion Polymorphism. Source: Wikipedia.


What are the various elements of Object oriented programming?

Encapsulation, data hiding, inheritance and polymorphism.


What are the basic concept of object oriented programming language?

Inheritance Encapsulation Polymorphism Abstraction


3 pillars of object oriented programming?

abstraction, inheritance, encapsulation, and polymorphism.


What is a polymorphs?

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.


The feature in Object Oriented Programming that allows the same operation to be carried out differently depending on the object is?

Polymorphism.


What are the features of object oriented program?

The features of object oriented programming are Abstraction, Encapsulation, Polymorphism & Inheritance


How do you achieve Polymorphism in C?

http://thewizardstower.org/thelibrary/programming/polyc.html http://www.codeproject.com/KB/recipes/PolymorphismC.aspx