1.What is the major advantage of polymorphism? Please don't
simply say binding. Specify any other reason.
Answers were Sorted based on User's Feedback
Answer / ashutosh
the main reason to use polymorphism is generalization, as
you can see in case of overloading. say if i have add
function which just add two intergers. and i have one more
similar kind of functionality then in that case i will do
the overloading as only my internal implemantation will
vary.
second thing is consistency in code.
and in case of overriding main advantage is you can invoke
child class function dynamically(means by creating the
object of base class as normally we do).
suppose one of my function expects my base class type
object and i want functionality of overrided function then
in that case i can simply write (parent obj = new child();)
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / judy prasheela
It means the Use of same thing for different purposes.Using
polymorphism we can create as many fuction we want with one
function name with different argument list.." many
functions,one name" otherwise "one name ,Multiple forms".
| Is This Answer Correct ? | 2 Yes | 3 No |
Is string a value type or a reference type?
What are the differences between an interface and an abstract class in .net?
What is class library in .net
what is the meaning silverligt control
Explain me what is an anonymous method and how is it different from a lambda expression?
Is .NET a runtime service or a development platform?
Tell me about secure socket layer? How to make use of the technology?
.What is Marshaling?
Explain about Behavioral design pattern?
How do you pass value of a text box from page1.aspx to page2.aspx without storing it as a session value?
What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?
Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?