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
What is method overriding?
What is static polymorphism?
Explain about message passing in object oriented programming?
Explain about the analysis phase?
What is the @functionalinterface annotation?
Explain about abstraction?
What is the benefit of using inheritance?
Explain what an object is.
Can you instantiate an abstract class and what is an inner class?
What is the base type from which all structs inherit directly?
Explain about multiple inheritance?
What is Abstract method and how different from Virtual Method?
How many methods are there in the externalizable interface?
Write down how will you create a Binary tree?
Why is C not an OOP language?