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
|