1.

Why do we need relationships between classes?(a) To use the functionality of one class into other(b) To enhance the communication between classes(c) To increase code re-usability(d) All of the mentionedThe question was posed to me by my college professor while I was bunking the class.Question is from Class Relationships topic in division Class Hierarchies, Library & Containers of C++

Answer»

The correct OPTION is (d) All of the mentioned

The explanation: Relationships are needed to increase the use of features of one class into the other classes i.e. INCREASING the re-usability of CODES and increasing COMMUNICATION between classes.



Discussion

No Comment Found

Related InterviewSolutions