...

View Full Version : Super class constructor



nerhael
04-19-2004, 05:51 PM
How do you call the super classes constructor?

Do you have to do it explicitly?


class MyClass extends MyParent {
function MyClass() {
parent::MyParent();
}
}

Or is there some other way of doing it? Is that particular version done implicitly like in Java? And you'd only do that if you have a parameterized version?

Pete.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum