ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net General
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
1.What is the major advantage of polymorphism? Please don't
simply say binding. Specify any other reason.
 Question Submitted By :: Srikanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any other reason.
Answer
# 1
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 ?    0 Yes 0 No
Ashutosh
 

 
 
 
Other Dot Net General Interview Questions
 
  Question Asked @ Answers
 
How is development of a Windows service different from a Windows Forms application?  1
Without UDDI, is it possible to access a remote web service ? TCS1
What is the managed and unmanaged code in .net? Deltech3
Name some of the languages .NET support?  2
What is WSDL and disco file ? TCS3
create a keypair?  1
what is the difference between early binding and late binding in .net? Satyam2
What does SCM do?  1
What is the Difference between imperative and interrogative code?  1
What is exception handling?  1
Give An example of a ctype and directcast. Wipro2
What are remotable objects in .NET Remoting?  1
What?s a proxy of the server object in .NET Remoting?  1
is c#.net supports multiple inheritance?  9
What is the Difference between directcast and ctype? Wipro3
ctype(123.34,integer) - should it throw an error? Why or why not? Wipro1
What is Garbage Collection in .Net? Garbage collection process?  3
Difference between VB.NET and C#. Which is faster ? TCS11
what are design patterns in .net....?  2
Directcast(123.34,integer) - should it throw an error? Why or why not? Wipro1
 
For more Dot Net General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com