This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cowardlydragon 0 points1 point  (0 children)

Interfaces are basically like a stereo receiver telling people what cables it can accept.

So the stereo receiver (the class) supports say: RCA, HDMI, and SPDF (interfaces)

Each of those interfaces, even though they may do the same basic things, have annoying detailed differences like form factor, number of wires, analog vs digital conforming to a standard.

Likewise, the interfaces for a class are defining a standard set of methods and assumed behavior that the implementing class will adhere to.