The Artima Developer Community
Sponsored Link

Design Forum
How to identify classes in Object Oriented Design?

1 reply on 1 page. Most recent reply: Jan 27, 2008 1:13 PM by Alek Or

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Sank Hudd

Posts: 2
Nickname: sh100
Registered: Jan, 2008

How to identify classes in Object Oriented Design? Posted: Jan 7, 2008 11:54 AM
Reply to this message Reply
Advertisement
I have done lot of object oriented reading but designing system for first time.

So jobseeker / employer /jobs will be classes but will resume / coverletter / jobDescriptions be classes?

I am beginner so any advice is welcome.
thank you.


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
Reply to this message Reply
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.

Flat View: This topic has 1 reply on 1 page
Topic: Model Driven Architecture Previous Topic   Next Topic Topic: How to create final class in C++?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use