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

Which namespace is used by ado.net?

937


What is & in a url?

898


Explain the difference between Repeater and Data list control in ASP.NET?

1051


What is asp.net globalization?

924


How can we pass info between 2 asp.net pages?

1009


What is the difference between dynamic SGA and static SGA?

1070


What is jade template engine?

983


Is react a template engine?

869


in which protocol ASP.NET WEB API Work?

1057


What is difference between datalist and gridview?

1020


Explain parts of assembly?

901


What is the meaning of TestApi?

1022


Explain asp.net mvc request life cycle? : asp.net mvc

974


What describes a query?

870


What is the purpose of asp.net?

950