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 platform does Microsoft .NET use for exchanging data between applications?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
Why we are using mvc instead of asp.net? : Asp.Net MVC
What is session and cookies in asp.net?
Contrast OOP and SOA. What are tenets of each ?
What is web api config?
Where is the view state data stored in asp net?
Define viewstate in .net?
5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
Why SessionID changes in every request in asp.net?
Difference between overriding and overloading?
What is http only cookie?
What is the file extension of web service?
What is the part of url?