Can link and Association applied interchangeably?
Answers were Sorted based on User's Feedback
Answer / surendra singh (suraj)
No, you cannot apply the link and Association
interchangeably. Since
* link is used represent the relationship between the two
objects.
* But Association is used represent the relationship
between the two classes.
link :: student:Abhilash course:MCA
Association:: student course
Is This Answer Correct ? | 28 Yes | 1 No |
Answer / master
Links and associations can't be used interchangeably because
association is a relationship among classes and link is a
relationship among instance of classes.
e.g. => Person works for company.
Here a connection exists between two classes 'person' and
'company' so this is the example of association but if we
take one instance of each of the above classes as 'Ram' and
'Google' then we can be specific about the work which Ram is
doing for Google.
e.g. => Ram works as a programmer for Google.
But we cant use 'Person works as a programmer for Google'.
Hence we can't use links and associations interchangeably.
Is This Answer Correct ? | 22 Yes | 0 No |
Can you create an instance of an interface?
Why do we use oops concepts? What is its advantage?
What is an USECASE? Why it is needed?
How to resolve many to many relationship?
6 Answers InfoAxon Technologies, Protech, Samsung,
Is class an Object? Is object a class?
What do you mean by Realization?
What are abstract methods?
Explain the different types of constructors
Can you instantiate an abstract class and what is an inner class?
0 Answers Flextronics, Tavant Technologies, Virtusa,
What is the @functionalinterface annotation?
explain dynamic binding
Why dynamic binding is used in object-oriented programming?