16. Object-oriented programming allows defining more than one method
having same name but different signatures in a single class, this feature is
known as _____________
A. Function overloading
B. Method overloading
C. Both a and b
D. None of these
17. Same operation is given different meanings depending upon the data type
of operands used, this type of polymorphism is achieved through
__________________
A. Function overloading
B. Method overloading
C. Operator overloading
D. None of these
Answers
Answered by
0
Answer:
There are 4 OOPS concepts in Java. Inheritance, Encapsulation, Polymorphism and Abstraction.
Answered by
0
Answer:
16-B.Method overloading
17-C.Operator overloading
Explanation:
- Creating more than one method or a function that has a same name but different signatures or parameters in the same class is called method overloading. Method overloading is also called early binding or compile time polymorphism or static binding.
- Polymorphism: Polymorphism (or operator overloading) is a manner in which OO systems allow the same operator name or symbol to be used for multiple operations. That is, it allows the operator symbol or name to be bound to more than one implementation of the operator.
- It allows you to provide an intuitive interface to users of your class, plus makes it possible for templates to work equally well with classes and built-in/intrinsic types. Operator overloading allows C/C++ operators to have user-defined meanings on user-defined types (classes).
Similar questions