# rational Class Reference

List of all members.

## Public Member Functions
void | change_denominator (long int new_denominator)
void | change_numerator (long int new_numerator)
long int | denominator () const
long int | numerator () const
const rational & | operator= (const rational &rhs)
| rational (const rational &r)
| rational (long int numerator, long int denominator)
| rational ()
## Protected Member Functions
void | reduce ()
## Protected Attributes
long int | my_denominator
long int | my_numerator

## Detailed Description

BEGIN LICENCE END LICENCE

## Constructor & Destructor Documentation

rational::rational | ( |  | ) |

rational::rational | ( | long int | numerator,
|  | long int | denominator |
| ) |  |  |

rational::rational | ( | const rational & | r | ) |

## Member Function Documentation

void rational::change_denominator | ( | long int | new_denominator | ) |

void rational::change_numerator | ( | long int | new_numerator | ) |

long int rational::denominator | ( |  | ) | const

long int rational::numerator | ( |  | ) | const

const rational& rational::operator= | ( | const rational & | rhs | ) |

void rational::reduce | ( |  | ) | `[protected]`

## Member Data Documentation

long int rational::my_denominator`[protected]`

long int rational::my_numerator`[protected]`