Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Intermediate Swift 2 Value Semantics, Type Methods and Inheritance Type Methods

Ryan Maneo
Ryan Maneo
4,342 Points

[Insert a million question marks here]

Okay. I'm going to be blunt. I have NO CLUE what he's talking about.

Am I the only one experiencing this? Doesn't look like it based off of the many posts regarding this course.

2 Answers

This video explains what Type Methods are.

Type methods, unlike instance methods, are methods that are called upon the class or struct itself, not an instance of the class or struct.

For example, a type method would look like this when called:

Map.distanceFromOrigin(point)

An instance method looks like this:

var map = Map()
map.distanceFromOrigin(point)

He goes more in depth in the video, but that's the basic concept.

Ryan Maneo
Ryan Maneo
4,342 Points

Thank you, and to address your previous statement, I'm not sure what else to say. My confusion isn't really summed up by any given thing, the entire course by Gabe has felt (for a lot of people if you look at other threads) like completely foreign ground, and a lot of people felt like they were being tested on something they've never learned about before.

Moritz Lang
Moritz Lang
25,909 Points

Hi Ryan, I experienced the same while watching some videos of this course. After watching them 2-3 times I was able to understand it. Maybe you just have to give it another try ;) If you have any direct questions about this course let me know and I would be glad to help you.

Ryan Maneo
Ryan Maneo
4,342 Points

I'm happy to know someone else made it through! It's like an actual battlefield! lol

Ryan, instead of creating a "INSERT QUESTION MARK OMMITTED KNOWLEDGE" thread on every video, why don't you ask what you are confused about and follow instructions to rewatch the video? They aren't atteping to confuse you, but simply creating something saying "I'm confused" isn't of any assistance to anyone else watching.

I know it can be confusing, but just take it nice and slow. After each video, if you don't understand what he is talking about, rewatch it or look at the documentation. If you still have questions, ask them here. But don't just say "ommitted knowledge!" Of course there will be things that he's unable to explain in the present video. Just be understanding and take it slow.