Hacker News new | ask | show | jobs
by jack9 3727 days ago
> No, good OOP has class/object with both private state and associated functions combined to provide a public interface for clients to use.

I don't believe there's evidence of this. Inteface scoping (e.g. "private/protected/public") is a relatively recent invention to protect against programmers who "don't know what they are doing". Adequate documentation is a superior tactic since that's a cursory best practice.