Click here to Skip to main content
12,954,403 members (95,701 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Can overriding and overloading both achieve polymorphism?
Posted 21-Aug-12 0:55am
Adam_adam1.9K
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
ridoy 21-Aug-12 7:07am
   
+5
Manas Bhardwaj 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 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 21-Aug-12 7:03am
   
Exactly!
ridoy 21-Aug-12 7:06am
   
good answer..+5
Santhosh Kumar J 21-Aug-12 11:14am
   
thanks
Manas Bhardwaj 21-Aug-12 9:14am
   
+5
Santhosh Kumar J 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 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
Top Experts
Last 24hrsThis month
OriginalGriff 6,524
CHill60 3,490
Maciej Los 3,123
ppolymorphe 2,030
Jochen Arndt 1,975


Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 8 Nov 2013
Copyright © CodeProject, 1999-2017
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