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

What are the different types of remote object creation mode in .net?

0 Answers  


Explain the use of activex control in .net?

0 Answers  


Do you know the difference between the stack and the heap?

0 Answers  


What is the difference between imperative and interrogative code?

0 Answers  


What is Active Directory? What is the namespace used to access the Microsoft Active Directories?

3 Answers  






What?s the Unix name for a Windows service equivalent?

1 Answers  


Which Security Algorithm used to encrypt the data? a) DES b)RC2 c)Triple DES d)All the above

1 Answers   CTS, Value Labs,


What is Global Assembly Cache (GAC) and what is the Purpose of it?

1 Answers  


What is singlecall activation mode used for in .net?

0 Answers  


What is the difference between constants and read-only variables?

0 Answers  


What is managed code in .NET?

0 Answers  


Explaing your project.

1 Answers   Deloitte,


Categories