First off I'd like to say I have no experience in oo programming, this is my first go at it. After reading many different tutorials and pieces from the camal book I think I'm starting to understand it (I'm a little slow). I'm having a hard time figuring out how to work the concepts into my projects. So lets say I have a project where I'm working with people and each person has a name, DOB, age, hair color and eye color. Seems like this would be a good candidate for an object. My questions are here:
1. Every tutorial I've seen is passing predetermined values into the object. Is it best to do any complex calculations or pattern matching in you main program and call your methods to just manage the values? Or do you develop complex methods that will do everything for you?
2. Does the hash you create with your object store all values? How do you pass it around for processing and printing?
3. Lets say I have a program where I call a bunch of different subroutines that gather a bunch of different data and I need to do this multiple times. I gather the data that I need and put it into arrays manually to be used later. Is this type of program a good candidate for 00 programming?
4. Whats best way to make changes to and access your objects?
Any help will be appreciated and if some of my questions don't make sense, sorry I'm still learning.