RationalNumber class
Constructors
- RationalNumber(int dividend, int divisor)
-
factory
Properties
Methods
-
add(
RationalNumber that) → RationalNumber -
inverse(
) → RationalNumber -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
opposite(
) → RationalNumber -
times(
RationalNumber that) → RationalNumber -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- one → const RationalNumber
- zero → const RationalNumber