Java Reference
In-Depth Information
Delving Further into
Object‐Oriented Concepts
What you Will learn in this chapter:
What annotations are
What overloaded methods are
How to use the this keyword
What information hiding or encapsulation is
What class inheritance and polymorphism mean
What interfaces are and what they do
How to organize your classes into packages
How garbage is collected in Java
Wrox.com code doWnloads for this chapter
The wrox.com code downloads for this chapter are found at www.wrox.com/go/
beginningjavaprogramming on the Download Code tab. The code is in the Chapter 7
download and individually named according to the names throughout the chapter.
The irst half of this topic covered the basics of Java and Object‐Oriented Programming.
Some of the chapters provided the tools or techniques needed to start building more complex
programs. Building on that foundation, you're ready to move on to these more advanced
concepts. This chapter expands on Chapter 4 to increase your knowledge of the principles of
Object‐Oriented Programming. The three main topics covered here are information hiding,
inheritance, and interfaces. However, there are also several other ideas that are discussed,
including method overloading, packages, garbage collection, and annotations. After com-
pleting this chapter, you will have the tools you need to create organized and advanced Java
 
Search WWH ::




Custom Search