| 
 Posted by Sanders Kaufman on 07/22/07 17:02 
Michael Fesser wrote: 
> .oO(Sanders Kaufman) 
 
> class my_childclass extends my_baseclass { 
>   function my_childclass() { 
>     // first call parent constructor or we won't have a database ... 
>     parent::my_baseclass(); 
>     // then do some other stuff 
>     ... 
 
 
OK - that seems to be where I went wrong.  I thought the base class's  
constructor was automatically called when the extended class's was. 
 
So, bottom line, what you're saying here is that when you extend a base  
class like this, you still have to manually call the base class's  
constructor?  Zat right?
 
  
Navigation:
[Reply to this message] 
 |