Wher to and where not to use a class???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

Wher to and where not to use a class???

Post by icarpenter »

Hi All.

Over the last few weeks I have been desperately struggling to understand objects and classes and could do with a little advice on where to and where not to use class functions…how does a class function differ to that of a normal function? is the main difference inheritance? How do you boffins out there structure your code in general are there any unwritten rules in OO programming.

In the real world what would you define as an object worthy of putting in a class? Why use separate classes for different functions? If anyone has any samples of real objects (please not to complex!) that are used in the real world it would for me to try and understand the full benefits of classes and object programming…

Your input would be much appreciated…

Ian.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

this may be of some help!?!?

viewtopic.php?t=30746

Mark
Post Reply