Which of the following explains Polymorphism?
Options
int func(int, int), float func1(float float);
O int func(int); int func(int);
int func(float); float func(int, int, char);
O int func(); int new_func();
Answers
Answered by
1
Answer:
float func1
Explanation:
Answered by
2
int func(float); float func(int, int, char);
Polymorphism
- It refers to the fact that something exists in multiple forms.
- In simple terms is the ability of a message to be displayed in multiple formats.
- It is one of the most significant characteristics of Object-Oriented Programming.
- Polymorphism permits us to carry out the same activity in multiple ways.
- It, in other terms, allows us to specify a single interface with various implementations.
- The word "poly" refers to many, and "morphs" refers to forms.
- Thus, polymorphs mean "many forms."
Types
- Compile-time Polymorphism
- Runtime Polymorphism
Similar questions
Environmental Sciences,
1 month ago
English,
3 months ago
Math,
3 months ago
Chemistry,
10 months ago
Physics,
10 months ago