12,067,652 members (49,193 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Can overriding and overloading both achieve polymorphism?
Posted 21-Aug-12 1:55am
Jon_adam1.4K

## 4 solutions

Rate this:
Please Sign up or sign in to vote.

## Solution 2

Comments
ridoy 21-Aug-12 7:07am

+5
Manas Bhardwaj 21-Aug-12 9:14am

right +5
Rate this:
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
Comments
ridoy 21-Aug-12 7:07am

+5
Rate this:
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/[^]
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:
Please Sign up or sign in to vote.

## Solution 4

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

Top Experts
Last 24hrsThis month
 OriginalGriff 337 Dave Kreskowiak 310 CHill60 256 Sascha Lefèvre 225 Richard MacCutchan 195
 Dave Kreskowiak 2,111 Richard MacCutchan 1,455 OriginalGriff 1,451 CPallini 992 d@nish 980

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