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

I don't know if I missed something but where did the keyword "Friend:" come from in the course media?

When he recapped on inheritence the code on the screen showed something similar to "class Friend: Person {}" I know that this is from C style langs but I dont remember it being covered here. Shouldn't inheritance be done like "class Doctor: Person {}"

Edit: I made this quetion from my course video and it doesnt seem to link back to it so here it is: Beginner iOS Development > Differentiating Between Objects > Recap and Conclusions (Video time 3:50)

1 Answer

I think I get it now. I think this has nothing to do with the C style keyword of "Friend" and that the word "Friend" is a new class that inherits the properties from the "Person" class. This is confusing and want to double check.