@property , @synthesize 를 간단하게 요약해 봅시다.
{
int numerator;
int denominator;
}
@property int numerator, denominator;
~~~
@end
-------------------------------------------------
@implementation Fraction
@synthesize numerator, denominator;
-------------------------------------------------
myFraction.numerator = 1;
myFraction.denomiator = 3;
요정도 까지..
댓글 없음:
댓글 쓰기