Chapter 11. CLASSES RELOADED

     

DO OR DIE:

  • Learn more about classes.

  • Eat more, drink more, be merrier.


The Classes chapter in this book covered a lot of the basics about writing classes and making objects (instances of classes) and using variables and methods. We discussed what makes up a class, including a package, visibility, methods , and fields.

There was a lot of stuff in that last chapter that we had to cover before anything else could start making sense. But the Java class is the heart of the language. It is actually all that you ever do, write classes. So if we said everything about classes in one chapter, that chapter would be like one giant, super-long, book-length chapter, 900 hours long, like LoTR RotK, so action-packed that it doesn't even afford time to run for a refill on your mtn dew.

So, in this chapter we'll expand and deepen our understanding of classes, and demonstrate the true power of this space station. You might implement the things we cover here, such as enums, static imports, and constructors, depending on your design. We are going to do this in a kind of circular manner, coming back around like a boomerang and perhaps re-touching on things at a greater depth.



Java Garage
Java Garage
ISBN: 0321246233
EAN: 2147483647
Year: 2006
Pages: 228
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net