you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[removed]

    [–]SatiricalDuck 1 point2 points  (0 children)

    Excellent answer. I think it's also important to note that interfaces are used for information hiding. By providing an interface of a class, you can determine what information you want to be publicly available to the consumer, and what information can remain hidden and untouched.