In object-oriented programming same operation is given different meanings depending upon the data type of operands used. By what can this type of Polymorphism be achieved?
Object-oriented programming allows to define more than one method having same name but different signatures in a single class. What is known as this characteristic?
We have written a function named ‘Max’ that takes two integers as parameters and returns maximum as integer value and one more function named ‘Max’ that finds maximum of integer elements stored in an array. What is known as this creation?
“Is it possible to define more than one function with same name in object oriented programming.” — Which of the following is a true answer of this question?
✓
It is possible as long as the methods differs in signatures.
B
It is possible when signature is not defined.
C
a and b both
D
None of these
Answer
Correct option: A.
It is possible as long as the methods differs in signatures.
It is possible as long as the methods differs in signatures.
Is it possible to define more than one function with same name in some programming languages.” Which of the following is a true answer of this question?