Object-Oriented Programming with Java Lecture Notes

28 February 2008 • Inner Classes


Outline

N-ary Trees

Hiding Information

Inner Classes

Example

Tying Classes

Example

Tree Traversal

Example

Implementing Tree Iterators

Implementation Details

Proposal

Iterator-Use Example

Inner-Scope Access

Example

Nested Class Scopes

Scope Example

Preventing Outer-Class Access

Static-Class Example

Class Instantiation

Instantiating Abstract Classes

Anonymous Classes

Instantiation Syntax

Example


This page last modified on 28 February 2008.

This work's CC license.