Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86203 invoked from network); 18 May 2010 15:51:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2010 15:51:17 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.211.177 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 209.85.211.177 mail-yw0-f177.google.com Received: from [209.85.211.177] ([209.85.211.177:38257] helo=mail-yw0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/E0-15677-277B2FB4 for ; Tue, 18 May 2010 11:51:16 -0400 Received: by ywh7 with SMTP id 7so3723131ywh.26 for ; Tue, 18 May 2010 08:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=gbtb1DlsDpP5u5KtTXbhY7LXUGReBKJb1cloI3B0lbA=; b=ArART4xDYvam9lx6v9Iv2Lx4kN7C2RcEb8skoxb0gGqqkYSVAV0ys8xurJPriYsIDJ 4ShkPwBStvbnztY3z1yaSm6MblW7ztsuAfwXVvZ8q7BS2O4mVF6E8y1b1EdarrcP37il aqOvMfmpxqTtl+P4+NIM+o7QkOyituekfnXy8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=GXRJuekzRN0P3PDAJAok9BthkoAL+AGXLRYrVICQDWKdg+QTOVw+daE/pSar4fydTT D+X7Zc/6pbHIzppjDOQN4VB7r+s4QFEH13ENFa58c0RXSZ4MlfjSASUKjXkB4BljaaEi i0onXNlmhWiSqRcTGSXJ4cZ0HOIzXrZtTNyME= Received: by 10.101.105.35 with SMTP id h35mr9078510anm.116.1274197871248; Tue, 18 May 2010 08:51:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.45.17 with HTTP; Tue, 18 May 2010 08:50:51 -0700 (PDT) Reply-To: RQuadling@googlemail.com In-Reply-To: <4BF2AE6C.2060403@easyflirt.com> References: <4BF2AE6C.2060403@easyflirt.com> Date: Tue, 18 May 2010 16:50:51 +0100 Message-ID: To: "mathieu.suen" Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Interface and abstract method From: rquadling@googlemail.com (Richard Quadling) On 18 May 2010 16:12, mathieu.suen wrote: > Hi, > > In the SPL there is some interface that have abstract method: > > *Countable* { > /* Methods */ > abstract public int count > ( void ) > } > > While some interface have "none abstract" method. > > *OuterIterator* extends Iterator > { > /* Methods */ > public Iterator getInnerIterator > ( void ) > ..snip.. > } > > Does =C2=A0"abstract" keyword have a semantic? > > Thanks > > --Mathieu suen > > > > http://docs.php.net/abstract By the nature of the method being in an interface, it is automatically abstract - there is no code behind the method in an interface. So you must supply the code in any class that implements the interface. Unless the sub-class is declared as an abstract class ... count(); ?> --=20 ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474= 731 ZOPA : http://uk.zopa.com/member/RQuadling