C Sharp Syntax - Object-oriented Programming (OOP) - Interfaces

Interfaces

Interfaces are data structures that contain member definitions and not actual implementation. They are useful when you want to define a contract between members in different types that have different implementations. You can declare definitions for methods, properties, and indexers. Interface members are implicitly public. An interface can either be implicitly or explicitly implemented.

interface IBinaryOperation { double A { get; set; } double B { get; set; } double GetResult; }

Read more about this topic:  C Sharp Syntax, Object-oriented Programming (OOP)