How to make properties private?

Viewed 6665

Someone told me I could make properties private so that only an instance of the class can refer to them (via self.)

However, if I use @private in the class interface and then declare the property normally, it can still be accessed from outside of the class... So how can I make properties private? Syntax example please.

2 Answers
Related