diff options
author | Sebastian Bergmann <sebastian@php.net> | 2003-03-07 05:19:19 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2003-03-07 05:19:19 +0000 |
commit | 63dfff02b19c3fe320c82ad6daacee37ff948761 (patch) | |
tree | 46c7a2e783b3839ca65f4d3eeec2d60b18bdf79b /Zend/ZEND_CHANGES | |
parent | 3c9155e0cba948820f809564f1c2b99e4792e256 (diff) | |
download | php-git-63dfff02b19c3fe320c82ad6daacee37ff948761.tar.gz |
Update 'abstract' section.
Diffstat (limited to 'Zend/ZEND_CHANGES')
-rw-r--r-- | Zend/ZEND_CHANGES | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES index 4db1d0d7e6..59b51b5ead 100644 --- a/Zend/ZEND_CHANGES +++ b/Zend/ZEND_CHANGES @@ -101,16 +101,17 @@ Changes in the Zend Engine 2.0 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 @@ Changes in the Zend Engine 2.0 $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. |