note 94275 added to language.oop5.abstract
| From: | JoshHayden at osu1 dot php dot net | Date: | Mon, 26 Oct 2009 18:20:07 +0000 |
| Subject: | note 94275 added to language.oop5.abstract | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162126@lists.php.net to get a copy of this message | ||
To Michael McNally (16-Sep-2009 07:00):
With interfaces you may define methods, but you cannot define properties. If you try to define
properties, you will get an "Interfaces may not include member variables" fatal error:
<?php
interface myInterface
{
public abstract $testVar; // fatal error
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 209.184.240.68
----
Manual Page -- http://www.php.net/manual/en/language.oop5.abstract.php
Edit -- https://master.php.net/note/edit/94275
Del: integrated -- https://master.php.net/note/delete/94275/integrated
Del: useless -- https://master.php.net/note/delete/94275/useless
Del: bad code -- https://master.php.net/note/delete/94275/bad+code
Del: spam -- https://master.php.net/note/delete/94275/spam
Del: non-english -- https://master.php.net/note/delete/94275/non-english
Del: in docs -- https://master.php.net/note/delete/94275/in+docs
Del: other reasons-- https://master.php.net/note/delete/94275
Reject -- https://master.php.net/note/reject/94275
Search -- https://master.php.net/manage/user-notes.php