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
Alexandra Kaplan
1,167 PointsWhat is the difference between an enum and a struct? And what is an init?
I am at the level of enums and structs, and have understood everything else thus far, but I can not understand how an enum and struct differ from an array (though I do understand that enums have categories that can't overlap each other (e.g. types of Dinosaurs, because a Dinosaur can only be one species at once)). Please explain to me what a struct is compared to an enum, and also what an init is. Thank you!
Chris Howie
13,216 PointsChris Howie
13,216 PointsHello! Treehouse has a great blog where they went a little bit more in depth on this topic.
Check it out here and let me know if you still have questions afterwards.
http://blog.teamtreehouse.com/enums-structs-swift