javascript
Brief description  about Online courses   join in Online courses
View Rahul Das Pattanaik 's Profile

How does VB.NET/C# achieve polymorphism?

How does VB.NET/C# achieve polymorphism?
Asked by Rahul Das Pattanaik | Sep 16, 2010 |  Reply now
Replies (1)
View yasho mithra s 's Profile
VB.Net/C# provide polymorphism through the following mechanisms:

1.Inheritance : base class provides overridable methods which are re-implemented in derived classes.
2.Interface : different class can implement same interface, resulting in different imple0mentations of interface methods.
3. Virtual methods : achieve runtime polymorphism.
Sep 17, 2010