Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
access control in swift
How to we provide access control in swift? There is nothing like using keywords like protected, private and public in front of the variables and classes.
Xavier DCourses Plus Student 5,840 Points
Based on where your question was saved in the community, I see that you are currently at "Value Semantics, Type Methods and Inheritance" in Intermediate Swift.
However, after that topic, you'll have to first get through "Extensions and Protocols", and "Memory Management in Swift" and then you'll get to the topic dealing with "Access Control". I recommend going thru previous topics because usually they act as building blocks...but...if you want, you can still visit that section here...
Thank you very much! I will take a look at this.