DeanConsulting
Programmer
Hello all,
It has been some time since I have been on here. I have been working with learning OOP and the help that you all have given me in the past is helping. After several months of on and off playing with OOP I have decided that my biggest road block, for the moment, is not being able to describe something as a class. I just cannot seem to get my head around it. For example, here is a description of a program a client has asked me to write in the past:
I need a database that tracks real estate signs, lock boxes, and flyer boxes. I need to know which agent has taken a sign, flyer box, and/or lock box to a particular piece of property so I can update the status of the sign, lock box, and flyer box as either ("available", "missing", or "lost"). I need to be able to create reports based on the type of item, the status, the date it was placed on the property and the date it was returned to the office.
My major hangup is how to tackle this in the OOP world.
My objects, I think are: sign, lock box, flyer box, property, agent, report, and database.
I know that I would create a base class called "box" and can create instances from box for the flyer and the lock.
I also know that I need to describe each object (properties) but I am not sure what each object needs to do (methods). For example, my property object, I think, would have the following properties: id,street location, unit number,city,state. I don't know what methods need to be described here.
Beyond that, I am lost as an easter egg. Any help would be greatful. Point me to some online reading material would also be greatful.
Thanks in advance,
Noble
---------------------------------------
Noble D. Bell
It has been some time since I have been on here. I have been working with learning OOP and the help that you all have given me in the past is helping. After several months of on and off playing with OOP I have decided that my biggest road block, for the moment, is not being able to describe something as a class. I just cannot seem to get my head around it. For example, here is a description of a program a client has asked me to write in the past:
I need a database that tracks real estate signs, lock boxes, and flyer boxes. I need to know which agent has taken a sign, flyer box, and/or lock box to a particular piece of property so I can update the status of the sign, lock box, and flyer box as either ("available", "missing", or "lost"). I need to be able to create reports based on the type of item, the status, the date it was placed on the property and the date it was returned to the office.
My major hangup is how to tackle this in the OOP world.
My objects, I think are: sign, lock box, flyer box, property, agent, report, and database.
I know that I would create a base class called "box" and can create instances from box for the flyer and the lock.
I also know that I need to describe each object (properties) but I am not sure what each object needs to do (methods). For example, my property object, I think, would have the following properties: id,street location, unit number,city,state. I don't know what methods need to be described here.
Beyond that, I am lost as an easter egg. Any help would be greatful. Point me to some online reading material would also be greatful.
Thanks in advance,
Noble
---------------------------------------
Noble D. Bell