How to work with an interface in VB.NET?

Started by chinmay.sahoo, 12-22-2016, 00:38:19

Previous topic - Next topic

chinmay.sahooTopic starter

Interfaces allow us to create definitions for component interaction. They also provide another way of implementing polymorphism. Through interfaces, we specify methods that a component must implement without actually specifying how the method is implemented.


Lishmalinyjames

Interfaces are more flexible than base classes because you can define a single implementation that can implement multiple interfaces. Interfaces are better in situations in which you do not have to inherit implementation from a base class. Interfaces are useful when you cannot use class inheritance.