NYCPHP Meetup

NYPHP.org

[nycphp-talk] Object conversion

Alexander alex at pilgrimstudio.com
Mon Jan 30 15:30:00 EST 2006


Hello,

I'm kind of newbie in PHP and especially in OO PHP.
I was wondering whether object conversion is possible if one is derived
from another , like this:

clase Base { .. }

class A extends Base { .. }

will that be possible to:

$objBase = new Base();
$objA = new A();

$objA = $objBase;

???



More information about the talk mailing list