Single Class or Several Small Classes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KodeKrazy
    New Member
    • Mar 2008
    • 32

    Single Class or Several Small Classes?

    I would like to get the opinions of the members of this forum on whether you think it is better to write a single class with all the functions, declarations, etc. or do you consider it better form to group similar functions/subs into smaller classes? Why? What are the advantages/disadvantages of both methods?
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Originally posted by KodeKrazy
    I would like to get the opinions of the members of this forum on whether you think it is better to write a single class with all the functions, declarations, etc. or do you consider it better form to group similar functions/subs into smaller classes? Why? What are the advantages/disadvantages of both methods?
    I always work with different classes, they're not that small, but they group similar functions. i.e.

    I usually have all the public declarations in only one, but the procedures are well grouped; If working on a calculator, i'd use a Calculus, Trigonometrics, Basics, etc.

    Each one with 10 to 15 procs.

    Its easier to find things and to keep it all organized. But i think it depends on how it works for each one.

    Comment

    Working...