正在加载图片...
Re-Implement Rationals ●Rational Class o Attributes: ■Numerator 题Denominator o Methods: print()-should print 'numerator denominator' add(other)-should return a new rational with addition of current and other mul(other)-should return a new rational with multiplication of current and otherRe-Implement Rationals ● Rational Class ○ Attributes: ■ Numerator ■ Denominator ○ Methods: ■ print() - should print ‘numerator / denominator’ ■ add(other) - should return a new rational with addition of current and other ■ mul(other) - should return a new rational with multiplication of current and other
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有