Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C# CLI OOP
Can overriding and overloading both achieve polymorphism?
Posted 21-Aug-12 1:55am
Jon_adam1.2K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
ridoy at 21-Aug-12 7:07am
   
+5
Manas Bhardwaj at 21-Aug-12 9:14am
   
right +5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
Comments
ridoy at 21-Aug-12 7:07am
   
+5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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/[^]
  Permalink  
Comments
Legor at 21-Aug-12 7:03am
   
Exactly!
ridoy at 21-Aug-12 7:06am
   
good answer..+5
Santhosh Kumar J at 21-Aug-12 11:14am
   
thanks
Manas Bhardwaj at 21-Aug-12 9:14am
   
+5
Santhosh Kumar J at 21-Aug-12 11:14am
   
Thanks
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Yes, By Overriding and Overloading you can achieve Polymorphism.
  Permalink  
Comments
Sumal.V at 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)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 BillWoodruff 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 8 Nov 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100