Map
Index
Random
Help
th

Quote: anonymous inner classes implement closures; e.g., makeAdder(n)

topics > all references > references a-b > QuoteRef: bensBW2_1999 , p. 33



Topic:
curried functions
Topic:
evaluation in an environment
Topic:
function definition
Topic:
types of object-oriented classes

Quotation Skeleton

A very important extension of [Java's] inner class … [This allows closures such as public Adder makeAdder (int n) { return new Adder() { public int add(int m) { return n+m; }};} ... [p. 35] Java's inner classes are truly closures for …   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: curried functions (14 items)
Topic: evaluation in an environment (34 items)
Topic: function definition (25 items)
Topic: types of object-oriented classes (18 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.