1.

How the relationship is made in Association?(a) Through the objects of classes(b) Through constructor(c) Through destructor(d) Through class NamesThis question was addressed to me during an interview.My query is from Class Relationships topic in portion Class Hierarchies, Library & Containers of C++

Answer»

The correct CHOICE is (a) Through the objects of classes

The best explanation: Association RELATIONSHIP between classes is made using the objects of classes like we have a bank object DENOTING ABC bank and some objects of Employee class XYZ1, XYZ2 and so on. So, in this case, XYZ1 is an employee in ABC bank so there is a relationship between these two objects.



Discussion

No Comment Found

Related InterviewSolutions