• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Separating classes?

 
Axe Darko
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, I am almost done reading HeadFirst Java and I am having trouble figuring out when and how to separate classes so that I don't have one giant class to run everything, but this book doesn't seem to have a good example of this. How would any of you separate the classes in the final beatbox client for example? Are you able to? Would I have to pass lots of arguments between the classes and importing all the packages over and over again? Thanks for the help.
 
arulk pillai
Author
Ranch Hand
Posts: 3385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Study the Gang Of Four (GOF) design patterns. All depends on how you divide responsibility.
[ November 10, 2008: Message edited by: arulk pillai ]
 
Axe Darko
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
great, thanks again, I'll look into that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic