Computer Science, asked by neosingh, 11 months ago

define two types of polymorphism

Answers

Answered by Anonymous
3
hello buddy here's ur answer❤❤❤

POLYMORPHISM:: Polymorphism that is resolved during compiler time is known as static polymorphism. Method overloading is an example of compile time polymorphism.


There are two types of polymorphism in java:

1) Static Polymorphism also known as compile time polymorphism


2) Dynamic Polymorphism also known as runtime polymorphism


✨✨hope it helps u
Answered by crkavya123
0

Answer:

Compile-time polymorphism and run-time polymorphism are the two forms of polymorphism. Method overloading is used for compile-time polymorphism, and method overriding is used for run-time polymorphism. The technique of runtime polymorphism, also known as dynamic method dispatch, resolves calls to overridden methods during runtime rather than at compile time.

Explanation:

polymorphism

The Greek term polymorphism implies "having numerous forms." This software is object-oriented and may give things varied meanings or use depending on the situation.

They are particularly relevant to variables, functions, and objects with several forms.

The two forms of overloading that may be enabled to create polymorphism are static and dynamic polymorphism.

Polymorphism is the provision of a single interface to entities of diverse types or the use of a single symbol to represent numerous distinct types in programming language theory and type theory. The idea is derived from a biological theory that states that an organism or species can go through a variety of shapes or phases.

The following are the most widely acknowledged major classes of polymorphism:

Ad hoc polymorphism: establishes a common interface for any assortment of types with distinct identities.

Parametric polymorphism: the use of abstract symbols that can represent any type rather than actual kinds that must be specified.

Subtyping, also known as inclusion polymorphism or subtype polymorphism, is the process whereby a name designates instances of several classes connected by a single superclass.

learn more about it

https://brainly.in/question/6440165

https://brainly.in/question/78017

#SPJ6

Similar questions