This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes class diagram - level of details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "class diagram - level of details" Watch "class diagram - level of details" New topic
Author

class diagram - level of details

Arkadiusz Ryckowski
Greenhorn

Joined: May 18, 2004
Posts: 12
Let says there's a case 'a user searches for a car by color and name'. For moderators - it's not my assigment and I belive it's quite general

I'm wondering if I should define method as

Collection findCarsByCriteria()
Collection findCars(Criteria)
Collection findCarsByNameOrColor(String,Color)
findCars()
findCarsByCriteria()

If I choose 1 or 3 should define classes Color or Criteria ?
I think even 5 is ok, it's designer rensposibility to define method sygnatures


SCEA 5.0<br />SCBCD 5.0<br />SCJP 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

"Arek R.", please check your private messages.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class diagram - level of details