Extends? Implements? Private, Public, Protected?
View Single Post
05-07-2008, 12:51 AM
Join Date: Dec 2007
Originally Posted by
Okay, for now I have one more question:
How should I organize my classes? Like should I have over 30 in different files, or should I all have them in the same file? Can I call a class from within a method? What is like, the generality that a class should follow, like, if it is about databases, can it use a class like getNavigation, or should I make a new class for all the non-reusable things?
classes are only used for only used in case you have to keep REUSING them. Also, 30 files for what? You can just put them all in one file, it doesn't really matter besides performance issues xD.
"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." - George Bernard Shaw
View Public Profile
Send a private message to Orc
Visit Orc's homepage!
Find More Posts by Orc