01-07-2009, 08:49 AM
|
#12 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
I am also having trouble writing OOP. I fully understand all the rules and I know what everything means/does.
But when I am wanting to write some useful application, I get stuck.
Maybe it's a good idea on a few people giving us some (basic) exercises we have to write OOP. Then discuss it later. The level should go from basic to advance within a weeks?
For example; first we have to write a basic Database class with a few (by you defined methods) in it. Later on we will cover inheritance etc.
Please reply on this post!
Edit: Also useful exercises are to write a class which gets like all products from a database and lists them on a page. The thing I struggle with is that I don't know whether to make an object for every product or not.
|
|
|
|