Interfaces

When designing an object-oriented system, there often arises a need to define some functionality or some pattern for class behavior without providing any implementation. Interfaces provide us this feature in a .NET environment. Generally, an interface is a set of methods. Implementing an interface by a class means providing implementations for all methods of that interface. This is very similar to inheritance from an abstract class, but unlike in the case of inheritance, you may implement multiple interfaces in your classes. Unfortunately, PerlNET does not allow us to define our own .NET interfaces, but we can easily implement existing ones. You can create your own interfaces in other .NET languages, such as C#. You can see how that ...

Get Programming PERL in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.