Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Separating classes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Separating classes?" Watch "Separating classes?" New topic
Author

Separating classes?

Axe Darko
Greenhorn

Joined: Oct 28, 2008
Posts: 3
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

Joined: May 31, 2007
Posts: 3223
Study the Gang Of Four (GOF) design patterns. All depends on how you divide responsibility.
[ November 10, 2008: Message edited by: arulk pillai ]

Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
Axe Darko
Greenhorn

Joined: Oct 28, 2008
Posts: 3
great, thanks again, I'll look into that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Separating classes?