Buy Questpond's video subscriptions on
huge discount
.
Online: 2927
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
What is Function polymorphism and Class Polymorphism ? Difference ? Why we need it ?
Posted by
Nav234
under
C#
on 7/8/2010 | Views : 3975 | Status :
[Member]
| Replies : 3
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi all ,
What is Function polymorphism and Class Polymorphism ? Difference ? Why we need it ?
Under which polymorphism,Method overloading ,overriding concepts come .
What are the other polymorphism sub types ,example ?
Thanks in advance
S.Naveen...
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Poster
on: 7/8/2010
[Member]
Starter
0
Function polymorphism is a kind of overloading and overriding. Class polymorphism is like inheriting parent class / interface and instantiating the subclass with parent class / interface.
Runtime polymorphism - overriding
Compile time polymorphism - overloading
You can have a look at following article for more details.
http://www.dotnetfunda.com/articles/article258.aspx
http://www.dotnetfunda.com/articles/article505-what-is-polymorphism-.aspx
Hope this help.
Thank you.
Nav234
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Dhirendra
on: 7/18/2011
[Member]
Starter
|
Points: 25
0
I believe that both overriding & overloading are compite time polymorphism as when we compile the application it knows which method to call in case of overriding.
so what I think is that runtime time polymorphism is when we use interface/abstract class with the similar behaviour and pass/use that interface in other classes (e.g. through depedancy injecttion, inversion of control) and that class only knows about the behaviour/interface but dont know the exact object at compile time and only knows at runtime.
Nav234
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Dhirendra
on: 7/18/2011
[Member]
Starter
|
Points: 25
0
I believe that both overriding & overloading are compite time polymorphism as when we compile the application it knows which method to call in case of overriding.
so what I think is that runtime time polymorphism is when we use interface/abstract class with the similar behaviour and pass/use that interface in other classes (e.g. through depedancy injecttion, inversion of control) and that class only knows about the behaviour/interface but dont know the exact object at compile time and only knows at runtime.
Nav234
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...