C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






What is Polymorphism


Posted Date: 07 Sep 2008    Resource Type: Definitions    Category: General

Posted By: Initiotech       Member Level: Gold
Rating:     Points: 5



In OPP'S, polymorphism(Greek meaning "having multiple forms") is the ablity of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a a function, or an object to have more than one forms.

In C# :
Parent classes may define and implement "virtual" methods(Which is done using the "virtual" keyword), and derived classes can override them(using the "override" keyword), which means they provide their own definition and implementation.At run-time, when user's code calls the method, the CLR looks up the run-time type of the object, and invokes that override of the virtual method. Thus in your source code when a method of the base class is called it executes the overriden method.

================================================================================
Regards Hefin Dsouza.




Responses

Author: mahendrakiran    31 Oct 2008Member Level: Gold   Points : 1
In object-oriented programming, the ability of different objects to respond, each in its own way, to the same message


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Polymorphism  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: What is Encapsulation?
Previous Resource: What is an assembly?
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

UK Conference calling Company

Contact Us    Privacy Policy    Terms Of Use