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

In Swift, what is the difference between a Base Class and a Super Class?

In Swift, what is the difference between a Base Class and a Super Class? They both seem to me to be the same thing but I don't think this is correct.

2 Answers

Base class and Super class are synonyms and used interchangeably.

I thought that was the case and could find nothing to the contrary except one of the questions in the code challenge said they were not. I guess it was just a badly worded challenge question.

Actually, we can nitpick on this and say that a base class is a class not inheriting from any other and whose none inherits from while a super class has at least one child. In practice, I've never seen any coder make a difference.