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

If we want to write a Windows service that cannot be paused, only started and stopped. How to accomplish that?

1 Answers  


What are the new thee features of com+ services, which are not there in com (mts)?

0 Answers  


How many types of generations are there in a garbage collector?

0 Answers  


What is func in .net 3.5?

0 Answers  


Can a try block have more than one catch block?

0 Answers  






i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

0 Answers  


What is the new three features of COM+ services, which are not there in COM (MTS)

0 Answers   TCS,


How to write an MMC snap-in for my Windows service?

1 Answers  


Tell me what is a “jagged array”?

0 Answers  


Why do we use the “using” statement?

0 Answers  


Writing a Stored procedure to insert the values into a table

1 Answers  


What is jit compilers?

0 Answers  


Categories