After reading a question on @private I understand how that works. However, since all variables default to @protected and you cannot really access a variable without defining an accessor, what exactly does @public do? When would you use it?
After reading a question on @private I understand how that works. However, since all
Share
When would you use it? When you need it to be
public. To access it from outside that class (without any extra accessors), that is. 🙂