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 trialpeter keves
6,854 PointsGetter Setter / Property
My first language is Swift and I'm really confused about the property thing. I have learned in Swift courses that property is a variable inside a class what is the definition of property in java ?
1 Answer
Steve Hunter
57,712 PointsHi Peter,
Yes, they are the sme thing, I think. A class can have a member variable, or property, which can be accessed using getter and setter methods.
Steve.