Package com.zybooks.dsaj.design
package com.zybooks.dsaj.design
Code from the chapter "Object-Oriented Design"
-
ClassDescriptionGenerates a simple progression.A class producing an arithmetic progression of the form start, start+step, start+2*step, ...Class for objects that can be sold, packed, and shipped.Class for objects that can be sold, packed, and shipped.A demonstration of a try-catch structure.A class producing a Fibonacci progression from two starting values.A demonstration of a generic function with a parameterized type.A class producing a geometric progression of the form start, start*factor, start*factor*factor, ...Interface for objects that can be insured when shipped.Pair<A,
B> Class for photographs that can be sold.Portfolio<T>A demonstration of inheritance.Generates a simple progression.Interface for objects that can be sold.Test program for the progression hierarchy.Interface for objects that can be transported.