Implementing Nested Classes

Table of contents:

Code Samples

graphics/intfig04.gif

Table 42 lists the code samples used in this chapter and where you can find the code online and on the CD that accompanies this book.

Table 42. Code Samples in Classes and Inheritance

Code Sample

CD Location

Online Location

Stack.java (page 178)

JavaTutorial/java/classes/example/Stack.java

http://java.sun.com/docs/books/tutorial/java/classes/example/Stack.java

Alpha.java (page 194)

JavaTutorial/java/classes/example/One/Alpha.java

http://java.sun.com/docs/books/tutorial/java/classes/example/One/Alpha.java

DeltaOne.java (page 196)

JavaTutorial/java/classes/example/One/DeltaOne.java

http://java.sun.com/docs/books/tutorial/java/classes/example/One/DeltaOne.java

AlphaTwo.java (page 196)

JavaTutorial/java/classes/example/Two/AlphaTwo.java

http://java.sun.com/docs/books/tutorial/java/classes/example/Two/AlphaTwo.java

DeltaTwo.java (page 197)

JavaTutorial/java/classes/example/Two/DeltaTwo.java

http://java.sun.com/docs/books/tutorial/java/classes/example/Two/DeltaTwo.java

AClass.java (page 198)

JavaTutorial/java/classes/example/AClass.java

http://java.sun.com/docs/books/tutorial/java/classes/example/AClass.java

Planet.java (page 206)

JavaTutorial/java/classes/example/Planet.java

http://java.sun.com/docs/books/tutorial/java/classes/example/Planet.java

Earth.java (page 206)

JavaTutorial/java/classes/example/Earth.java

http://java.sun.com/docs/books/tutorial/java/classes/example/Earth.java

Superclass.java (page 207)

JavaTutorial/java/classes/example/Superclass.java

http://java.sun.com/docs/books/tutorial/java/classes/example/Superclass.java

Subclass.java (page 208)

JavaTutorial/java/classes/example/Subclass.java

http://java.sun.com/docs/books/tutorial/java/classes/example/Subclass.java

The section Common Problems and Their Solutions (page 391) contains solutions to common problems Tutorial readers have encountered.


Getting Started

Object-Oriented Programming Concepts

Language Basics

Object Basics and Simple Data Objects

Classes and Inheritance

Interfaces and Packages

Handling Errors Using Exceptions

Threads: Doing Two or More Tasks at Once

I/O: Reading and Writing

User Interfaces That Swing

Appendix A. Common Problems and Their Solutions

Appendix B. Internet-Ready Applets

Appendix C. Collections

Appendix D. Deprecated Thread Methods

Appendix E. Reference



The Java Tutorial(c) A Short Course on the Basics
The Java Tutorial: A Short Course on the Basics, 4th Edition
ISBN: 0321334205
EAN: 2147483647
Year: 2002
Pages: 125

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