//
// Fraction.h
//
//
// Created by Darin on 15/11/21.
// Copyright © 2015年 darin. All rights reserved.
//
#import <Foundation/Foundation.h>
//分子(numerator)和分母(denominator)
@interface Fraction : NSObject
{
int _numerator;
int _denominator;
}
-(void) setNumerator: (int)numerator;
-(void) setDenominator: (int)denominator;
-(int) getNumerator;
-(int) getDenominator;
-(void) print;
-(void) add:(Fraction *)num;
-(void) sub:(Fraction *)num;
@end