-(NSString *) description
{
return [NSString stringWithFormat: @"%i/%i/%i", _month, _day, _year];
}
The idea is the same as, for example, overriding ToString() method in C#.
Random programming things I'd want to remember
-(NSString *) description
{
return [NSString stringWithFormat: @"%i/%i/%i", _month, _day, _year];
}
No comments:
Post a Comment