Lecture overview -- Keyboard shortcut: 'u'  Previous page: The Visitor design pattern -- Keyboard shortcut: 'p'  Next page: Towards a Visitor solution -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 34 : 37
Object-oriented Programming in C#
Abstract classes, Interfaces, and Patterns
Natural object-oriented IntSequence traversals

We will study Min, Max, and Sum traversals of integer sequences

Integer sequences are represented as a Composite (trees) of intervals, singulars and composite sequences

 

The class diagram of the IntSequence composite.

/user/normark/oop-csharp-1/sources/c-sharp/sequence/natural-oo-visitor-motivation/Sequence.csThe abstract class IntSequence.


/user/normark/oop-csharp-1/sources/c-sharp/sequence/natural-oo-visitor-motivation/Sequence.csThe class IntInterval.


/user/normark/oop-csharp-1/sources/c-sharp/sequence/natural-oo-visitor-motivation/Sequence.csThe class IntSingular.


/user/normark/oop-csharp-1/sources/c-sharp/sequence/natural-oo-visitor-motivation/Sequence.csThe class IntCompSeq.


/user/normark/oop-csharp-1/sources/c-sharp/sequence/natural-oo-visitor-motivation/App.csA sample application of IntSequences.


/user/normark/oop-csharp-1/sources/c-sharp/sequence/natural-oo-visitor-motivation/outputProgram output.