Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is heap and what is stack?

1004


What is WSDL? Explain its architecture?

1108


What are the properties of ADO.NET?

1075


How to create properties and methods using controls?

1060


Explain something about WebService?

1100


What is the procedure to add assemly to gac to make it shared one?

921


How com+ related to the dna architecture?

1055


What is a serviced component?

947


What is the need of OLE-automation?

1095


What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

902


Explain what is a manifest in .net?

954


Explain the main components in .net?

995


How to implement CAS in .Net?

2783


What is reflection in microsoft .net context?

984


Explain what is the difference between web application and enterprise application?

987