Lecture overview -- Keyboard shortcut: 'u'  Previous page: Overloadable operators in C# -- Keyboard shortcut: 'p'  Next page: Some details of operator overloading -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Operators, Delegates, and Events - slide 4 : 20

An example of overloaded operators: Interval

An interval is a type that represents the ordered sequence of integers between one integer and another

We program the type Interval with value semantics

Interval-without-indexer.cs
The struct Interval.
app.cs
A client program of struct Interval.
output
Output from the interval application.
Go to exercise
Interval indexer
Go to exercise
An interval overlap operation
PlayingCard.cs
The class PlayingCard with relational operators.