Why does it work?
Class InSeq has defined a general interface
Class IntArraySeq has specialized that interface for arrays
Each time find calls s.avail() or s.next(), that is a virtual call that executes the corresponding IntArraySeq operation
Previous slide
Next slide
Back to first slide
View graphic version