What is association?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is association?
Rating:
An association represents a relationship between classes. It represents a mechanism that allows objects to communicate with each other. It describes the connection between different classes.
Association can be unidirectional or bi-directional.
A unidirectional association implies that an object of the class from which the arrow is originating, i.e., the class that has the no-arrowhead side of the association may invoke methods on the class towards which the arrow is pointing.
A bi-directional association means that either object in the association may invoke methods on the other.
Rating:
Was this information helpful?
Other articles
- What is a session bean?
- What is a roll back?
- What is the String + operator?
- What is a Web service?
- How to install an RMI application?