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
Explain the difference between debug.write and trace.write? When should each be used?
Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?
Difference between response.redirect and server.transfer?
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
What is the use of placeholder control?
What is http response header?
If we remove web.config or machine.config from the application then, is this application will works?
What is content place holder?
How can we use Web API with ASP.NET Web Form?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What are validators and list some validators of asp.net?
What is the difference between the response.write() and response.output.write() methods?
What is the namespace to create thread in .net?
What is the difference between c# and .net?
What is microsoft windows sharepoint services?