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 Object-Oriented Swift Complex Data Structures Initializers and Self

Zenek Barburka
Zenek Barburka
7,009 Points

initializer is a special instance method that sets up our CLASS???? ready for use

why are you talking about class before you introduce them? Are you trying to get everyone confused?

2 Answers

James Rimmer
James Rimmer
2,603 Points

Given that the description of this video states "Structs in Swift get an automatic initializer method that helps us create an instance of the STRUCT for use", I imagine Pasan just said the wrong word by mistake, but it would be good to get confirmation from him.

Josue Gisber
PLUS
Josue Gisber
Courses Plus Student 9,332 Points

Well it actually does the same for class too. You will see that in the next segment of videos

James Rimmer
James Rimmer
2,603 Points

But there isn't an automatic initializer for classes?