Hello, I am very confused on the concepts of class, methods and instances. I have honestly looked through my objective-c book and searched the web for hours but no avail. Any help would be greatly appreciated. I have this very simple piece of code from my book and it would greatly help if one of you could explain what bits are the objects, methods and instances. Thankyou.
Code:
@interface Fraction: NSObject
{
int numerator;
Int denominator;
}
- (void) print;
- (void) setNumerator: (int) n;
- (void) setDenominator: (int) d;
@end