Why "private" methods in the object oriented ?

Posted by pointlesspolitics on Stack Overflow See other posts from Stack Overflow or by pointlesspolitics
Published on 2010-04-12T08:28:33Z Indexed on 2010/04/12 8:33 UTC
Read the original article Hit count: 281

I understand it is a very basic concept in the oops. But still I cannot get my head around. I understood why member variables are private, so class user cannot abuse it by setting up invalid values.

But how can this apply to the methods ?

© Stack Overflow or respective owner

Related posts about oop

Related posts about encapsulation