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
Describe the differences between the lifecycles of Windows services and Standard EXE?
is gateway for sms continue connected for sending sms.how?
Explain culture and uiculture values.
What are the advantages and disadvantages of session?
What is __ requestverificationtoken?
Which browsers support the xmlhttprequest object?
Explain the difference between value type and reference type?
Why is mvc better than asp.net?
How long should a session id be?
How you can access the properties and controls of master pages from content pages?
9. Why should we hire you over the others waiting to be interviewed?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
What is the difference between client-side and server-side validations in webpages?
How would you implement inheritance using c#?