View Single Post
04-18-2009, 02:45 PM
Join Date: Apr 2007
Originally Posted by
Do I have to declare the property as "public" in order to access it outside of the class? Right now all my properties are set to "private".
To access the property directly (
), yes it needs to be public. Also note that with private, any classes that extend the class will not have access to it. If you want extending classes to be able to 'see' the private property then it will need to instead be
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe