[Php-it] imporre l'implementazione di un metodo

Andrea Franceschini therealmorpheu5 at gmail.com
Mon Feb 5 18:50:39 CET 2007


Il 05/02/07, Domenico L.<domenico.lorusso a pleiade.it> ha scritto:

> scusa ma non puoi dichiarare solo il metodo astratto?

Fatal error: Class Plugin contains 1 abstract method and must
therefore be declared abstract or implement the remaining methods

Significherebbe che dovrei implementare m() per A e che quindi B non
sarebbe piu' costretta ad implementare m() perche' lo eredita da A.

> Altrimenti l'unica soluzione che mi viene in mente è che A abbia quel
> metodo fatto così:
>
> function metodoDiB (){;}

neanche questo costringe B ad implementare la funzione.


More information about the Php-it mailing list