C# Interfaces Part 1


An interface is a contract between a service provider (server) and the user of the service (client).
An interface describes what is in a class and a class is the how each method is implemented.
An interface has public instance (nonstatic) methods and properties that are grouped together to encapsulate specific functionality.
You cannot instantiate an interface.
Interfaces are not classes and thus do not inherit from System.Object
Prefixed with a capital I, normally
A class can support multiple interfaces and multiple classes can support the same interface.
Access modifiers public and internal are used in the same way with interfaces,

Leave a comment

Your email address will not be published. Required fields are marked *