Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
238 Software Essentials
subtyping (specialization) retains the is-a relationship but its modication
of inherited behavior may compromise the notion of substitutability.
As noted in Chapter 6, a simple example of extension is a TriAthlete
class. A TriAthlete is-a BiAthlete, that is a TriAthlete runs and bikes like a
BiAthlete but also swims. A BiAthlete is-a Runner, that is a BiAthlete runs
like a Runner but also bikes. Extension diers from specication in that
the base class is not abstract but an existing usable type. Extension diers
from specialization in that the derived classes extend, and do not compro-
mise, the inherited interface.
e last two types of inheritance design delineated in Table 8.2 describe
class designs that reuse ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204