First page Back Continue Last page Summary Graphics
and how to use it
/* Construct new objects */
Rational r1 = new Rational();
Rational r2 = new Rational();
/* set or access values */
r1.num = 2; r1.denom = 5;
r2.num = 3*r1.denom;
r2.denom = r1.denom;
Notes: