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...

How does VB.NET/C# achieve polymorphism?

Answer Posted / srinivas

1. function overloading,

2. Runtime polymorphism --Using Interface reference,

EX:
interface name I ,abstract Method();
implimenting classes A,B

ref I;
objA= new A();
objB= new B();

runtime
objA=I

objA.Method();

objB=I;
objB.Method();

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the differences between the lifecycles of Windows services and Standard EXE?

1270


is gateway for sms continue connected for sending sms.how?

2308


Explain culture and uiculture values.

1026


What are the advantages and disadvantages of session?

1169


What is __ requestverificationtoken?

1054


Which browsers support the xmlhttprequest object?

1077


Explain the difference between value type and reference type?

696


Why is mvc better than asp.net?

1114


How long should a session id be?

1087


How you can access the properties and controls of master pages from content pages?

1000


9. Why should we hire you over the others waiting to be interviewed?

2855


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1907


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

1028


What is the difference between client-side and server-side validations in webpages?

1064


How would you implement inheritance using c#?

1045