Original Post
I am attempting to learn OOP, trying to get there from an algorithmic perspective. What I'm down to is this basic problem:: The schoolbooks say that a member function (method) is associated with an object. That's fine. But I would like to know how it is associated. What does the method do to the object in a general sense, that it would not do if suppose it had not been added. Is it that the value(s) in the method are passed into object variables? Or is it something else? I posted somewhere else, and the answer I got back said that a method didn't necessarily affect the variables in the object at all. If that is true, then, and I hate to sound like a broken record, then how does the method affect the object by being associated with it, if we assume it has no bearing on the variables within the object? And maybe you could, please please pleease attach a bonehead example of an object interacting with a member function. My text will show examples, but it doesn't show the code that makes up the object now the code that makes up the member function. So could you make the member function user defined? AS well as the object. Thank you good sir/ ma'am for taking the time to read this and even more if you can help me see the light of OOP :) Have a nice day. Kudos.