23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

parameterized constructor <strong>in</strong> the FibonacciProgression class to provide a<br />

different way of start<strong>in</strong>g the progression.<br />

Code Fragment 2.5:<br />

progression.<br />

Class for the Fibonacci<br />

In order to visualize how the three different progression classes are derived from<br />

the general Progression class, we give their <strong>in</strong>heritance diagram <strong>in</strong> Figure<br />

2.5.<br />

108

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!