22.11.2012 Views

Schaum's Outline Series

Schaum's Outline Series

Schaum's Outline Series

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 12 Object-Oriented Metrics 197<br />

Metric 3: Number of Children (NOC)<br />

Class NOC<br />

person 1<br />

student 0<br />

personlist 0<br />

Metric 4: Coupling between Object Classes (CBO)<br />

See Fig. 12-4.<br />

person<br />

addName<br />

addSsn<br />

getName<br />

display<br />

personlist<br />

addPerson<br />

addStudent<br />

display<br />

Fig. 12-4<br />

The class diagram is annotated with arrows to show which functions (or constructors)<br />

are called by each function (only calls in other classes are shown).<br />

Class Coupled Classes CBO<br />

person student, personlist 2<br />

student person, personlist 2<br />

personlist person, student 2<br />

student<br />

addGpa<br />

display

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

Saved successfully!

Ooh no, something went wrong!