Author:admin

Date:2014-10-10T16:35:49.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1396 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
jfiat
2014-10-10 16:35:49 +00:00
parent d0e539d431
commit 36d446be0c
2 changed files with 3 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ Multiple inheritance sometimes has the reputation of being complicated or even m
Multiple inheritance happens as soon as you list more than one class in the <e>inherit</e> clause at the beginning of a class. For example: Multiple inheritance happens as soon as you list more than one class in the <e>inherit</e> clause at the beginning of a class. For example:
<e> <eiffel>
class PRINTER feature class PRINTER feature
... Here the features specific to printers ... ... Here the features specific to printers ...
end end
@@ -26,7 +26,7 @@ Multiple inheritance happens as soon as you list more than one class in the <e>i
feature feature
... Here the features specific to printer-scanners ... ... Here the features specific to printer-scanners ...
end end
</e> </eiffel>
As with single inheritance, the new class has access to the parent features, except that here they are features of two different parents. For example if <e>PRINTER</e> has feature <print> and <e>SCANNER</e> has features <e>scan</e> and <e>scanned</e>, then the feature clause of <e>SCANNER</e> can include As with single inheritance, the new class has access to the parent features, except that here they are features of two different parents. For example if <e>PRINTER</e> has feature <print> and <e>SCANNER</e> has features <e>scan</e> and <e>scanned</e>, then the feature clause of <e>SCANNER</e> can include

View File

@@ -1,5 +1,4 @@
[[Property:title|The New Eiffel Test Wizard]] [[Property:title|The Eiffel Test Wizard]]
[[Property:link_title|The Eiffel Test Wizard]]
[[Property:weight|1]] [[Property:weight|1]]
[[Property:uuid|305a8288-cb6a-df2a-1515-e23138e21566]] [[Property:uuid|305a8288-cb6a-df2a-1515-e23138e21566]]
==Introduction== ==Introduction==