From google, i read that method overloading and overriding will "Increase the performance & lot of memory space has been
SAVED.."
How the memory space is being saved by overloading/overriding?
Printable View
From google, i read that method overloading and overriding will "Increase the performance & lot of memory space has been
SAVED.."
How the memory space is being saved by overloading/overriding?
Could you post a link to the source you got this information from?
Method overloading should have zero effect on both performance and memory usage (they're physically two different methods, they just happen to have the same name).
Directly, method overriding should have zero or near zero effect on both performance and memory usage. However, method overriding does allow you to make use of polymorphism and properly use generic types, allowing you to program more efficiently and thus write higher quality code with less effort (that's the hope, at least).
I read the above from here
What is the use/advantage of function overloading.
Can u point me to a link which lists advantages of polymorphism