Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 10th, 2007, 06:24 AM
Registered User
 
Join Date: May 2007
Location: hyderabad, Andhra Pradesh, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Overloading

Hi everybody!

I want to know that "in .net Overloading is not a kind of polymorphism implementation?". Some friends are telling that polymorphism implemented only at run-time rather compile time. It is true. If yes Why?

Please help me to make a conclusion.
Reply With Quote
  #2 (permalink)  
Old July 17th, 2007, 01:30 AM
Authorized User
 
Join Date: Jul 2007
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Polymorphism may be implemented both at runtime and compile time.

 A function having 2 definitions (with different types of signatures) is truely a polymorphic function, and when we build the source, we easily see that this is digested by the .NET compiler during compile time. So we say its polymorphic at compile time.

 Now when a function is used depending on user's input (when the application is running), then any of these 2 functions may be called depending on the activities happening inside the application, this scenario is said to be a runtime polymorphic behavior.

For more information, read this...

 http://www.dotnetuncle.com/OOPS/17_overloading.aspx

 http://www.dotnetuncle.com/OOPS/13_polymorphism.aspx

 HTH

 Cheers

 VK

http://www.dotnetuncle.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Overloading Overriding arv1980 VS.NET 2002/2003 2 January 22nd, 2006 12:55 AM
Polymorphism->overloading? naveen J2EE 2 October 19th, 2005 03:34 AM
Operator Overloading In Inheritance ahmedsalam C# 0 October 18th, 2005 12:25 PM
enum toString() overloading kramis8 C# 0 November 21st, 2004 07:55 PM
Overloading Initialize_Class sg48 Excel VBA 1 July 11th, 2003 08:47 AM



All times are GMT -4. The time now is 08:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.