Java Reference
In-Depth Information
Modify the class in the previous exercise to store the coefficients as
BigRationals .
3.34
Implement a complete IntType class that supports a reasonable set of
constructors, add , subtract , multiply , divide , equals , compareTo , and
toString . Maintain an IntType as a sufficiently large array. For this
class, the difficult operation is division, followed closely by
multiplication.
3.35
references
More information on classes can be found in the references at the end of
Chapter 1. The classic reference on design patterns is [1]. This topic describes
23 standard patterns, some of which we will discuss later.
1.
E. Gamma, R. Helm, R. Johnson, and J. Vlissides, Elements of Reusable
Object-Oriented Software , Addison-Wesley, Reading, MA, 1995.
 
Search WWH ::




Custom Search