21.08.2013 Views

Software Engineering for Students A Programming Approach

Software Engineering for Students A Programming Approach

Software Engineering for Students A Programming Approach

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11.11 Compare and contrast the principles behind the following design methods:<br />

•<br />

■ functional decomposition<br />

■ data structure design<br />

■ data flow design<br />

■ object oriented design.<br />

Answers to self-test questions<br />

11.1 There are objects laser and alien and there<strong>for</strong>e classes Laser and<br />

Alien. Class Laser has a method checkAlienHit.<br />

11.2 class Bomb<br />

Instance variables<br />

x<br />

y<br />

height<br />

width<br />

yStep<br />

Methods<br />

Bomb<br />

move<br />

display<br />

getX<br />

getY<br />

getHeight<br />

getWidth<br />

Further reading<br />

Object-oriented design<br />

Further reading 149<br />

An excellent book which presents a view of the process and notation of OOD and also<br />

contains five extensive design case studies. Widely regarded as the definitive book on<br />

OOD: G. Booch, Object-Oriented Design with Applications, Addison-Wesley, 2nd edn,<br />

1993.<br />

A wide-ranging survey of approaches and notations. Very readable. An excellent<br />

overview of the different methods and notations: Edward Yourdon, Object-Oriented<br />

Systems Design: An Integrated <strong>Approach</strong>, Prentice Hall, 1994.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!