OOAD starts from use cases (specially use case specification) and identify
the responsibilities of classes and the collaborations of the objects of
these classes, then the relationships of classes. For your question 2), it
depends on the navigability of the relationships of class Order, OrderItem
and Product.

Here is a book quite helpful:

Craig Larman, Applying UML and Patterns, An Introduction to Object-Oriented
Analysis and Design. 

Jie
-----Original Message-----
From: Tian WeiJun [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2001 02:27
To: rose forum
Subject: (ROSE) question about OOAD



Hi
a>
would anyone recommand one or several good books about object-oriented
analyis and design? both in theoretic and practice?

b>
and I have one question:
in our system, there are classes: Order, OrderItem, Product.
one Order has 1 to many OrderItems, each OrderItem has relationship to One
Product.
there are two method to model them:u 
1) Order: int orderID,Date orderDate, Collection items
   OrderItem: int lineNo, int qty, double price, Product product
   Product: Int productID, String name, String UOM
2) Order: int orderID,Date orderDate 
   OrderItem: int orderID, int lineNo, int qty, double price, int productID
   Product: Int productID, String name, String UOM
which one is more OO?

c>
are there any theory in OOAD about how to model these kind of relationship?
are there any theory in OOAD just like normalization in RDBMS design?

thanks


            Tian WeiJun
            [EMAIL PROTECTED]

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to