CS 3304: Comparative Languages
Object-Oriented Programming
[
Course Documents
] : [
Object-Oriented Programming
]
Previous
Contents
Next
Keyword Index
Eiffel Inheritance
The parent of a class is specified with the inherit clause
Feature clauses specify access control to the entities defined in them
Without a modifier, the entities in a feature clause are visible to both subclasses and clients
With the name of the class as a modifier, entities are hidden from clients but are visible to subclasses
With the none modifier, entities are hidden from both clients and subclasses
Inherited features can be hidden from subclasses with undefine
Abstract classes can be defined by including the deferred modifier on the class definition