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

What is asp.net response object?

564


Can you change a Master Page dynamically at runtime?

583


How can you make sure that web api returns json data only?

519


What is the function used for removing an event listener?

551


What is the request flow used for asp.net mvc framework? : asp.net mvc

534






1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????

18525


Which of the following .NET framework supports Web API?

644


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

5079


What is session authentication?

536


How can we make sure that Web API returns JSON data only?

546


What is the part of url?

534


Are there resources online with tips on asp to asp.net conversions?

552


What is asp.net caching?

579


List some of the important session state modes of asp.net.

508


Can we have 2 web config files?

547