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
How you can stop the validation of ASP.NET controls from client side?
Can you explain architecture of your project ?
What are the different web pages?
Explain the overview of asp.net?
What is latest version of asp.net mvc? : Asp.Net MVC
What is is post back property in asp net?
Difference between application events and session events
Explain the difference between array and linkedlist?
What is the difference between executescalar and executenonquery?
What is a query string in a url?
What kind of data we can store in viewstate?
What is cross page posting? How is it done?
Which protocol is used to call a web service?
Why web api is better than wcf?
What do you understand from custom control?