Alek Or
Posts: 3
Nickname: alek
Registered: Jan, 2008
|
|
Re: How to identify classes in Object Oriented Design?
|
Posted: Jan 27, 2008 1:13 PM
|
|
This is one of the central questions in OO.
Classes represent important CONCEPTS from the CONTEXT you are modeling. CONCEPTS have its CHARACTERISTICS. Those are expressed via attributes (data) and operations (procedures).
So, resume, coverletter, etc. might be classes or maybe attributes of a class. How can we determine which one?
Jobseeker have name, phone, resume, etc. so, Jobsekker is a class! Resume might also have its attributes: title, date, text, etc. In this case, a Resume is also a class.
However, you can decide to store just a text for a resume in a Jobseeker class. In this case, Resume is an attribute of a type string in the Jobseeker class.
Another question you can ask yourself to decide is if your candidate class has relationships with another classes. If so, its a class.
Josbeeker have relationships with ajob he's posulating, employer, etc. This makes it class.
Resume probably has relationship only with a Jobseeker class, so from this point of you it can perfectly be an attribute.
Generaly you should set your CONTEXT well and try to identify its CONCEPTS with a needed level of details.
I hope this helps.
I also recommend you a tool which can certainly help you - Enterprise Analyst. www.enterpriseanalyst.net
Regards,
Alek.
|
|