Hi
I have a very general question about Object Orientated programming.
I totally understand objects but i occassionally struggle to understand how some situations fit in to the whole OO thing.
Let me explain.
If i have a customers table with CustomerID, Name, Age
There are two things i could do.
I could create a Customer Class that had properties of each column in the table, then when i need to update the table i could call methods on the class.
OR
I could bind the data directly from the db and update the table via a dataset. Although this does involve OO i don't actually use any of my own classes.
I'm basically building a business tool which involves managing clients, projects, jobs and tasks. Now, i can't help but think that this just doesn't need to be done 'very OO'. I can see myself being able to create a few classes with a bunch of static methods and everything will work hunky dory, BUT, i want to be able to get into the OO habit.
Can anyone suggest anything?
Thanks
I have a very general question about Object Orientated programming.
I totally understand objects but i occassionally struggle to understand how some situations fit in to the whole OO thing.
Let me explain.
If i have a customers table with CustomerID, Name, Age
There are two things i could do.
I could create a Customer Class that had properties of each column in the table, then when i need to update the table i could call methods on the class.
OR
I could bind the data directly from the db and update the table via a dataset. Although this does involve OO i don't actually use any of my own classes.
I'm basically building a business tool which involves managing clients, projects, jobs and tasks. Now, i can't help but think that this just doesn't need to be done 'very OO'. I can see myself being able to create a few classes with a bunch of static methods and everything will work hunky dory, BUT, i want to be able to get into the OO habit.
Can anyone suggest anything?
Thanks