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

Darryl Robinson
seal-mask
.a{fill-rule:evenodd;}techdegree
Darryl Robinson
iOS Development Techdegree Student 7,978 Points

Project two classes and structs

Should I use individual classes and structs for each individual question or use one class or struct to house every individual question.

Jeff McDivitt
Jeff McDivitt
23,970 Points

Can you provide some more detail on what you are trying to build, so I can see if I can assist?

1 Answer

Apple is pro Structs and only about classes when you basically need to do a view. Strings and such like that are all structs. Look at what these objects are they are mainly structs and enums. Apple even goes pro structs in this WWDC ---> https://developer.apple.com/videos/play/wwdc2016/419/