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
Which namespace is used by ado.net?
What is & in a url?
Explain the difference between Repeater and Data list control in ASP.NET?
What is asp.net globalization?
How can we pass info between 2 asp.net pages?
What is the difference between dynamic SGA and static SGA?
What is jade template engine?
Is react a template engine?
in which protocol ASP.NET WEB API Work?
What is difference between datalist and gridview?
Explain parts of assembly?
What is the meaning of TestApi?
Explain asp.net mvc request life cycle? : asp.net mvc
What describes a query?
What is the purpose of asp.net?