Object Oriented Software Engineering View all facts Glossary Help |
| subject > pattern > multiplicity pattern |
| multiplicity pattern comparison table | ||
| Subject | be | have example |
|---|---|---|
| many-to-many | as general as possible | A secretary can work for many managers, and a manager can have many secretaries |
| many-to-one | the same as one-to-many | A company has many employees, but an employee can only work for one company |
| one-to-many | the same as many-to-one | |
| one-to-one | less common than other multiplicity patterns | For each company, there is exactly one board of directors |
Next pattern: software architecture Up: pattern Previous pattern: design pattern