cvs: ZendEngine2 / ZEND_CHANGES
| From: | Sebastian Bergmann | Date: | Fri, 07 Mar 2003 05:19:19 +0000 |
| Subject: | cvs: ZendEngine2 / ZEND_CHANGES | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1019@lists.php.net to get a copy of this message | ||
sebastian Fri Mar 7 00:19:19 2003 EDT
Modified files:
/ZendEngine2 ZEND_CHANGES
Log:
Update 'abstract' section.
Index: ZendEngine2/ZEND_CHANGES
diff -u ZendEngine2/ZEND_CHANGES:1.51 ZendEngine2/ZEND_CHANGES:1.52
--- ZendEngine2/ZEND_CHANGES:1.51 Thu Mar 6 11:39:45 2003
+++ ZendEngine2/ZEND_CHANGES Fri Mar 7 00:19:19 2003
@@ -101,16 +101,17 @@
Old code that has no user-defined classes or functions named
'public', 'protected' or 'private' should run without
modifications.
- * Abstract Methods.
+ * Abstract Classes and Methods.
- The Zend Engine 2.0 introduces abstract methods. An abstract
- method only declares the method's signature and does not
- provide an implementation.
+ The Zend Engine 2.0 introduces abstract classes and methods. An
+ abstract method only declares the method's signature and does not
+ provide an implementation. A class that contains abstract methods
+ needs to be declared abstract.
Example:
<?php
- class AbstractClass {
+ abstract class AbstractClass {
abstract public function test();
}
@@ -124,8 +125,7 @@
$o->test();
?>
- A class containing abstract methods may be instantiated, but
- calling its abstract methods will result in an error.
+ Abstract classes cannot be instantiated.
Old code that has no user-defined classes or functions named
'abstract' should run without modifications.