My First Class - Any Good?
View Single Post
07-14-2008, 03:31 PM
Join Date: May 2008
Originally Posted by
Urm, yeah, what he said ^
I'd always used
and remembered once I saw a different way of doing that with OOP, ala
so seeing as I love being different, I did it that way :P
Though what you do is correct. Constants are usually accessed through the self:: or ClassName:: while properties (public variables) are accessed through $this.
I've seen some really funky stuff going along with inheritance and constants though so I stayed away from them :D
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
View Public Profile
Send a private message to drewbee
Find More Posts by drewbee