Listings
Listing 1
. The controlling class.
Listing 2
. The top-level class named X.
Listing 3
. The top-level class named Y.
Listing 4
. Beginning of the top-level class named A.
Listing 5
. The private showA method.
Listing 6
. The method named delay.
Listing 7
. Beginning of the method named meth.
Listing 8
. Set value of blank final variable.
Listing 9
. Beginning of the local class named B.
Listing 10
. Back to the method named meth.
Listing 11
. Invoke showB on the first object.
Listing 12
. Back to showB in class B.
Listing 13
. Invoke showA.
Listing 14
. Access the containing object.
Listing 15
. Illustrate the inheritance hierarchy.
Listing 16
. Define overridden toString in class B.
Listing 17
. Invoke showB method on second object.
Listing 18
. Complete program listing.
File: ae.htm
[Next]
[Prev]