View Single Post

  #2 (permalink)  
Old 05-28-2005
Janwillem Borleffs
 
Posts: n/a
Default Re: abstract classes and inheritance in php5

Ollie wrote:
> in a code like the above, how can you force all the inherited classes
> to implement a method like init() ?
>


Not possible, because only the class that extends the abstract class is
forced to implement the method.

Other classes just inherit the method.


JW



Reply With Quote