Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Objective-C Basics (Retired) Introduction to Objective-C From Structs to Objects

Few Clarification

Hi,

  1. In the video. The instructor declare variable inside the "Sphere : NSObject" bracket but he declare the methods outside of the bracket. Is this important ? If it is, can you please explain why?

  2. I came from a C++ background so I would like to know what's the difference between a method and a function. Also what's the difference between instance method and class method.

  3. I understand that Sphere inherit the NSObject class. So don't we have to " #import <NSObject> " or something of this nature ?

Thanks!