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 trialDongeui Hong
1,529 Pointsdifferences between struct, enum and class
what are the differences between struct, enum and class. are they similar ? then, why swift has three similar things?
1 Answer
Steven Deutsch
21,046 PointsHey there Dongeui Hong,
You should rematch some of the videos on Swift Enums and Structs for further clarification. You can also check out this post by Chris Upjohn who provides a great explanation:
https://teamtreehouse.com/community/whats-the-difference-between-enum-struct-and-class
Good luck!