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



1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any ot..

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

1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any ot..

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

Post New Answer

More Dot Net General Interview Questions

When a Static Constructor called in .NET?

0 Answers  


How does the .NET framework work?

1 Answers  


Differences between namespace, class, assembly?

0 Answers  


Please explain what is immutability, what is it for and how is it codified?

0 Answers  


What is concurrency? How will you avoid concurrency when dealing with dataset?

0 Answers  






What is the microsoft .net?

0 Answers  


I am constantly writing the drawing procedures with system.drawing.graphics, but having to use the try and dispose blocks is too time-consuming with graphicsobjects. Can I automate this?

0 Answers  


Explain me what are the deferred execution and the immediate execution in linq?

0 Answers  


Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?

0 Answers  


Explain Different kinds of methods?

0 Answers   Wipro,


How many namespaces are in .net version 1.1?

0 Answers  


What is boxing?

3 Answers  


Categories