1#import "Fraction.h"
2#import <stdio.h>
3
4@implementation Fraction
5-(void) print {
6    printf( "%i/%i", numerator, denominator );
7}
8
9-(void) setNumerator: (int) n {
10    numerator = n;
11}
12
13-(void) setDenominator: (int) d {
14    denominator = d;
15}
16
17-(int) denominator {
18    return denominator;
19}
20
21-(int) numerator {
22    return numerator;
23}
24@end
25