I have come accross one very good illustration on Interface.
Universal TV Remote Control for all different brands of TV
Power On/Off, Volume high/low, Channel Selection are the common contracts for TV functionalities on a Universal TV Remote Control. I do not need to care about the implementations of every TV. As long as every TV compliance to these contracts, the universal remote control is able to access those functionalities on different brands of TV.
Very Interesting Ambiguity in C# Interface
No comments:
Post a Comment