Part Four: Interfaces
If you've read parts 1-3 of this blog you'll be aware that we've used the real world objects, cars, to draw a parallel with, and explain, classes, inheritance and abstraction. I hope that, by this stage, you are beginning to undertand and recognise the advantages that come from properly object orienting your code. Flexibility for future development is a key aspect of proper OO design.
Although the code examples in this BLOG have been written in C#, one of the .NET languages, the principles apply to all Object Oriented languages.
So, we now come to
Interfaces. What role do they have in object oriented programming?
Contracts...