no reserved words for method names

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167294 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2004-08-26 10:15:38 +00:00
parent d2ba182639
commit 93a810678c

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<sect1 id="language.oop5.abstract">
<title>Object Abstraction</title>
@ -30,7 +30,7 @@ abstract class AbstractClass {
abstract protected function getValue();
/* Common method */
public function print() {
public function printOut() {
print $this->getValue();
}
@ -53,11 +53,11 @@ class ConcreteClass2 extends AbstractClass {
}
$class1 = new ConcreteClass1;
$class1->print();
$class1->printOut();
$class2 = new ConcreteClass2;
$class2->print();
?>
$class2->printOut();
?>
]]>
</programlisting>
</example>
@ -67,7 +67,7 @@ $class2->print();
'abstract' should run without modifications.
</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml