Class Diagrams - tmarris.com
Class Diagrams - tmarris.com
Class Diagrams - tmarris.com
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
2<br />
Lecturer and Student are both kinds of Borrower, each with their own set of<br />
borrowing rules. For example. a Student can borrow up to four books for up to three<br />
weeks. A Lecturer can borrow up to six books for up to six weeks.<br />
Borrower<br />
Lecturer<br />
Student<br />
9.2 Attributes<br />
An object has a set of attributes. Attributes? What are the attributes of your ideal<br />
partner? Attributes are derived from what an object has. For example, a student has<br />
a course and a loanLimit.<br />
Student<br />
course<br />
loanLimit<br />
A Borrower has a name and an idNumber. A Lecturer has a name, an idNumber and<br />
a faculty and loanLimit. A Student has a name, an idNumber and a course and<br />
loanLimit.<br />
Borrower<br />
name<br />
idNumber<br />
Lecturer<br />
faculty<br />
loanLimit<br />
Student<br />
course<br />
loanLimit