+ 1

is polymorphism possible without inheritance ?

23rd Sep 2016, 6:52 AM
chirag shah
3 Respuestas
+ 4
compile time polymorphism is possible without inheritance. best example of compile time polymorphism is method overloading
23rd Sep 2016, 7:06 AM
Soumadeep Tapadar
Soumadeep Tapadar - avatar
0
nope
23rd Sep 2016, 7:12 AM
Shibasankar Mahapatra
Shibasankar Mahapatra - avatar
0
Polymorphism IS NOT possible without inheritance. Whitout inheritance you can have overload of some method, but this is far away from polymorphism.
23rd Sep 2016, 12:07 PM
Vinícius Dias
Vinícius Dias - avatar