language/oop5/inheritance.xml
f94d903985119d3ac00f4528551df947f57b667f
...
...
@@ -48,7 +48,7 @@
48
48
<note>
49
49
<para>
50
50
It is not allowed to override a read-write property with a <link linkend="language.oop5.properties.readonly-properties">readonly property</link> or vice versa.
51
-
<example>
51
+
<informalexample>
52
52
<programlisting role="php">
53
53
<![CDATA[
54
54
<?php
...
...
@@ -63,14 +63,13 @@ class B extends A {
63
63
?>
64
64
]]>
65
65
</programlisting>
66
-
</example>
66
+
</informalexample>
67
67
</para>
68
68
</note>
69
69

70
-
<sect2 xml:id="language.oop5.inheritance.examples">
71
-
<example xml:id="language.oop5.inheritance.examples.ex1">
72
-
<title>Inheritance Example</title>
73
-
<programlisting role="php">
70
+
<example>
71
+
<title>Inheritance Example</title>
72
+
<programlisting role="php">
74
73
<![CDATA[
75
74
<?php
76
75

...
...
@@ -104,9 +103,8 @@ $bar->printPHP(); // Output: 'PHP is great'
104
103

105
104
?>
106
105
]]>
107
-
</programlisting>
108
-
</example>
109
-
</sect2>
106
+
</programlisting>
107
+
</example>
110
108

111
109
<sect2 xml:id="language.oop5.inheritance.internal-classes">
112
110
<title>Return Type Compatibility with Internal Classes</title>
113
111