What is CrazyEngico.com (CE)?

CrazyEngico (CE) is a one-stop solution for interview questions and answers, domain knowledge, e-learning, tutorials, articles and many more learning material.
e-learning - Intelligent e-learning tutorials and articles
Domain Knowledge Learn about various business domains/verticals such as Banking, Financial, Insurance, Healthcare and many more...
Interview Questions and Answers - Post your questions and answers. 1000+ database of ready questions and answers available to prepare for an interview.
Tutorials - 300+ video tutorials from beginner to expert level.
Articles - 300+ technical articles to understand concepts.
Forum - A technical forum to post your queries/responses.

Search Questions

Interview Questions/Answers

Ads
Question
Interview Q & A >> C# >> What is Polymorphism?

<< Previous Question Navigator Next >>

0        0
What is Polymorphism? (Views: 2192)


Answers

1        0

Polymorphism is a feature that allows one interface to be used for general class of actions. The specific action is determined by the exact nature of the situation. In general polymosrphism means "one interface, multiple methods". This means that it is possible to design a generic interface to a group of related activities. This helps reduce complexity by allowing the same interface to be used to specify a general class of action. It is the compiler's job to select the specific action (that is, method) as it applies to each situation.
For example, an operation may exhibit different behavior in different situations. The behavior depends upon the types of data used in the operation. For example, an addition operation involving two numeric values will produce a sum and the same addition operation will produce a string if the operands are string values instead of numbers. Similarly, a method when called with one set of parameters may draw a circle but when called with another set of parameters may draw a triangle. Polymorphism is extensively used while implementing inheritance.

Submitted By: Anonymous | Created On: 5/16/2009 4:38:04 PM


3        0

Polymorphism is a feature that can be defined as "one name but different meaning". In .Net perspective it can be categorized as compile time and runtime polymorphism. Function overloading is the compile time polymorphism and function overriding is the runtime polymorphism.

Submitted By: Anuj Tyagi | Created On: 2/19/2012 7:48:21 PM


Post your Answer
Your answer will be first reviewed by our administrator before it appears on the site.

Your Answer:


 
Display Name:





By clicking on Submit button you agree to the Terms of Service agreement.




Copyright © 2018 CrazyEngico.com. All rights reserved.
CrazyEngico.com is not responsible for the content and CrazyEngico.com does not evaluate or guarantee the accuracy of any CrazyEngico.com content.
Please read our terms of service agreement before using this site.

feedback