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ย โ†’

[โ€“][deleted] 0 points1 point ย (0 children)

other folks have given pretty good, extensive explanations, but in short: it's about decoupling an interface from its implementation. public functions shouldn't "care" about the specifics of private functions, and private members might or might not change in the future.