3034ccom/lab01/frac.cpp
Fraction Fraction::mul(const Fraction& F) const {

	Fraction localFrac;

	localFrac.setNum(getNum() * F.getNum());
	localFrac.setDenom(getDenom() * F.getDenom());

	return localFrac.reduce();
}
// Function mul
//	Without modifying the calling Fraction object, 
// 	multiplies two Fractions and returns the resulting
// 	Fraction object.
Function mul
Without modifying the calling Fraction object,
multiplies two Fractions and returns the resulting
Fraction object.
Function mul Without modifying the calling Fraction object multiplies two Fractions and returns the resulting Fraction object .
Fraction Fraction::mul(const Fraction& F) const {
	Fraction localFrac;
	localFrac.setNum(getNum() * F.getNum());
	localFrac.setDenom(getDenom() * F.getDenom());
	return localFrac.reduce();
}
Fraction Fraction :: mul ( const Fraction & F ) const { Fraction localFrac ; localFrac . setNum ( getNum ( ) * F . getNum ( ) ) ; localFrac . setDenom ( getDenom ( ) * F . getDenom ( ) ) ; return localFrac . reduce ( ) ; }
Function mul
Without modifying the calling Fraction object,
multiplies two Fractions and returns the resulting
Fraction object.
Function mul Without modifying the calling Fraction object multiplies two Fractions and returns the resulting Fraction object .