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
Structural Design 171
unsigned getRange() {return getMax()
– getMin();}
};
class maxRangeCompose2
{ …
minMax m;
public:
unsigned getRange(){return m.getMax() – m.getMin();}
};
Choosing inheritance rather than composition, or vice versa, yields
little dierence in this example. Code is reused either way. ere is no
variability in the relationship between the minMax component and the
minMaxMean type (or the maxRange type). Each design denes an object
with exactly one embedded minMax component. e relationship between
parent and child (or object and subobject) is xed, in terms of lifetime
association, unit cardinality, and ownership. Moreover, substitutability is
not imperative. at is, there appears to be no client need fo
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