Accessing subclass methods/members
Posted: Wed Oct 31, 2007 2:07 am
In PHP 4 and 5 is this absolutely done via the Paamayim nekudotayim or scope resolution operator?
As I understand it (although I haven't tested) you can access base class members using either:
OR
Of which the latter is prefered, I know. 
I just need to make sure that using the :: operator is the ONLY way to directly access base class members???
p.s-practically anyways, using unusual hacks doesn't count.
Cheers
As I understand it (although I haven't tested) you can access base class members using either:
Code: Select all
ClassName::_someMethodCode: Select all
parent::_someMethodI just need to make sure that using the :: operator is the ONLY way to directly access base class members???
p.s-practically anyways, using unusual hacks doesn't count.
Cheers