Biology, asked by Mohit0128, 10 months ago

about Polymorphism in brief.

Answers

Answered by cocexpert61
0

Answer:

polymorphism from the Greek meaning having multiple forms is the characteristic of being able to assign a different meanin...

Explanation:

Answered by sp6559568
0

ɧɛ ɱąɬɛ ɧɛγɛ ıʂ ųγ ąŋʂщɛγ....

In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form.

In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. There are several different kinds of polymorphism.

1) A variable with a given name may be allowed to have different forms and the program can determine which form of the variable to use at the time of execution. For example, a variable named USERID may be capable of being either an integer (whole number) or a string of characters (perhaps because the programmer wants to allow a user to enter a user ID as either an employee number - an integer - or with a name - a string of characters). By giving the program a way to distinguish which form is being handled in each case, either kind can be recognized and handled.

2) A named function can also vary depending on the parameters it is given. For example, if given a variable that is an integer, the function chosen would be to seek a match against a list of employee numbers; if the variable were a string, it would seek a match against a list of names. In either case, both functions would be known in the program by the same name. This type of polymorphism is sometimes known as overloading.

...

ԹӀՏ ʍɑɾƘ íԵ íƒ íԵ հҽӀԹՏ մ..

íԵՀ ҍ@d ցíɾӀ...

◆ ▬▬▬▬▬▬ ❴✪❵ ▬▬▬▬▬▬ ◆

Similar questions