PHP OOP - Am I the only one?
View Single Post
01-07-2009, 08:49 AM
Join Date: Oct 2007
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.
View Public Profile
Send a private message to maZtah
Find More Posts by maZtah