RSS feed
[root]
/
document
/
software design
/
TI Pattern
/
code
/
c12
/
doubledispatch
login:
password:
title search:
Search this site
Enter your search terms
Web
www.carfield.com.hk
Submit search form
Prev
Next
Wed Dec 26 16:00:00 GMT 2001
TypedBin
//: c12:doubledispatch:TypedBin.java // A container for the second dispatch. import c12.trash.*; import java.util.*; public abstract class TypedBin { Collection c = new ArrayList(); protected boolean addIt(Trash t) { c.add(t); return true; } public Iterator iterator() { return c.iterator(); } public boolean add(DDAluminum a) { return false; } public boolean add(DDPaper a) { return false; } public boolean add(DDGlass a) { return false; } public boolean add(DDCardboard a) { return false; } } ///:~
(google search)
(amazon search)
1
2
3
second
download zip of files only
Prev
Next