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 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.