Click here to Skip to main content
15,867,785 members
Please Sign up or sign in to vote.
4.57/5 (4 votes)
See more:
Can overriding and overloading both achieve polymorphism?
Posted

 
Share this answer
 
Comments
ridoy 21-Aug-12 7:07am    
+5
Manas Bhardwaj 21-Aug-12 9:14am    
right +5
Of course Yes dear, Both overloading and overriding achieve polymorphism. And even in c# there is another concept introduced with them, that is Method Hiding.

static polymorphism :- overloading
dynamic polymorphism :- overriding and Method Hiding
 
Share this answer
 
Comments
ridoy 21-Aug-12 7:07am    
+5
yes..Overloading is static polymorphism
and overriding is dynamic polymorphism

To know about overloadng and overriding with example. follow this link.
http://vishalnayan.wordpress.com/2011/03/01/understanding-static-dynamic-polymorphism-with-examples/[^]
 
Share this answer
 
Comments
Legor 21-Aug-12 7:03am    
Exactly!
ridoy 21-Aug-12 7:06am    
good answer..+5
Santhosh Kumar Jayaraman 21-Aug-12 11:14am    
thanks
Manas Bhardwaj 21-Aug-12 9:14am    
+5
Santhosh Kumar Jayaraman 21-Aug-12 11:14am    
Thanks
Yes, By Overriding and Overloading you can achieve Polymorphism.
 
Share this answer
 
Comments
[no name] 21-Aug-12 7:13am    
When there is 3 acceptable answers why did you repeat them.
Sumal.V 21-Aug-12 8:19am    
Reputation Points! Common! :P

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900