Re: Class Interfaces

From: Date: Sun, 09 Feb 2003 15:07:05 +0000
Subject: Re: Class Interfaces
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134947@lists.php.net to get a copy of this message
"Laborda" <laborda@hotpop.com> wrote in message news:005201c2cfe9$47c704b0$ad629c40@galaxy... > > Hello, > > I have a question.. Does PHP have support for Class Interfaces declaration? > What in Java would be: > > ? If not, how can I do this?.. Thanks a lot. Well, interfaces are needed in Java since it is a statically typed language. For dynamically typed language like php there is no need for it. If you would like to do it just for the documentation sake, than write abstract class like: class pehro_interface { function a1() {} function a2() {} function a3() {} } rush -- http://www.templatetamer.com/

« previous php.general (#134947) next »