This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes dependency or association?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "dependency or association??" Watch "dependency or association??" New topic

dependency or association??

mallika shah
Ranch Hand

Joined: May 11, 2006
Posts: 164
Can someone please clarify the following question?

1. Consider a Flight Management system that manages the assignment of flights to FlightSchedule for an airline. The FlightSchedule class has add(f:Flight) and remove(f:Flight) methods defined in it. What is the relationship between FlightSchedule and Flight classes?
a). Generalization relationship
b). Composition relationship
c). Inheritance relationship
d). Dependency relationship
e). Association relationship

(select 1 correct answer)
what will be the ans..??
whizlabs says-association relationship..
some posts in Object by design forum say -composition relationship'
i say - dependency Relationship
whats the correct ans..??

I agree. Here's the link:
subject: dependency or association??