Answer Posted / 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 |
Post New Answer View All Answers
Name some languages which have object oriented language and characteristics?
Can I implement polymorphism using abstract class?
What is a nested interface?
Difference between composition and inheritance ?
Differences between functional programming and object-oriented programming?
How do you prevent a class from being inherited by another class?
State about java and its relation to object oriented programming?
Explain basic concepts of OOPS?
Why we use oops concepts? What is its advantage?
What is the use of finalize method?
Can an interface have an inner class?
Explain about abstraction?
What is the main advantage of using inheritance?
What is abstract method?
If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?