what is the benefit of polymorphism
Answers
Answered by
1
Polymorphism is the ability of an object to take on many forms. ... Any Java object that can pass more than one IS-A test is considered to bepolymorphic. Advantages of Polymorphism. 1.Method overloading allows methods that perform similar or closely related functions to be accessed through a common name.....hope it helps
Answered by
1
Advantages of polymorphism:
- Same interface could be used for creating methods with different implementations
- Reduces the volume of work in terms of distinguishing and handling various objects
- Supports building extensible systems
- Complete implementation can be replaced by using same method signatures
- Same interface could be used for creating methods with different implementations
- Reduces the volume of work in terms of distinguishing and handling various objects
- Supports building extensible systems
- Complete implementation can be replaced by using same method signatures
Similar questions
Physics,
8 months ago
Social Sciences,
8 months ago
Math,
8 months ago
Math,
1 year ago
Chemistry,
1 year ago