I have a struct called Circle (it has members x, y, and r). I define it and give a few function declarations in a Circle.h file and define those functions in a Circle.m file.
I did it this way just because that's how CGRects are done.
But then it occurred to me that this is an awful lot like a class. Is there any real reason that I should or shouldn't make this a class? If I shouldn't make this a class, I'm kind of wondering why I should make anything a class.
Thoughts?
I did it this way just because that's how CGRects are done.
But then it occurred to me that this is an awful lot like a class. Is there any real reason that I should or shouldn't make this a class? If I shouldn't make this a class, I'm kind of wondering why I should make anything a class.
Thoughts?