Ada 95 Quality and Style Guide | Chapter 9 |
Through careful usage of these options, you can ensure that your
abstractions preserve class-wide properties, as discussed in Guideline
9.2.1. As stated above, this principle requires that any type
that is visibly derived from some parent type must fully support
the semantics of the parent type.
9.3 TAGGED TYPE OPERATIONS
You can use three options when you define the operations on a
tagged type and its descendants. These
categories are primitive abstract, primitive nonabstract, and
class-wide operations. An abstract operation must be overridden
for a nonabstract derived type. A nonabstract operation may be
redefined for a subclass. A class-wide operation cannot
be overridden by a subclass definition. A class-wide operation
can be redefined for the derivation class rooted in the derived
type; however, this practice is discouraged because of the ambiguities
it introduces in the code.
< Previous Page
Search
Contents
Index
Next Page >
1
2
3
4
5
6
7
8
9
10
11
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
Appendix
References
Bibliography