Algorithms and OOD (CSC 207 2013F) : Outlines

Outline 38: Detour: Anonymous Inner Classes

Held: Monday, 11 November 2013

Back to Outline 37 - Pause for Breath: Sorting. On to Outline 39 - Priority Queues and their Basic Implementation.


We explore anonymous inner classes, a powerful Java programming technique.

Related Pages



Detour: Invariants for Merge

Anonymous Inner Classes

Basic structure

new *Interface*() {
    *Body of Class*

Uses' * On-the-fly predicates * On-the-fly comparators * Iterators * And more


Copyright (c) 2013 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.