CS304P Quiz 2 Solution Spring 2022 by GetReady
Interaction of different objects in OO model is known as ______.
CS304P Quiz 2
The interaction of different objects in an object-oriented model is known as object interaction or object collaboration.
CS304P Quiz 2
___________ is a concept to extract common behaviours by using Bottom to Top approach.
ChatGPT
Inheritance is a concept to extract common behaviors by using a bottom-up approach.
CS304P Quiz 2
A Classroom class holds Students.Which of the following relationships best describe the above statement?Select the correct option Aggregation,Composition,Association,Inheritance
ChatGPT
The relationship between the Classroom class and Students can be described as an aggregation relationship.
CS304P Quiz 2
People own Book. This type of relationship is known as ________.
ChatGPT
The relationship between People and Book, where people own books, is known as an association relationship.
CS304P Quiz 2
Which problem arises due to multiple inheritance, when the parent classes are also derived from the grandparent class?
The problem that arises due to multiple inheritance when the parent classes are also derived from the grandparent class is known as the "diamond problem" or "diamond inheritance problem." This problem occurs when a class inherits from two or more classes that have a common base class. It leads to ambiguity in the inheritance hierarchy, particularly when there are conflicting or overlapping member definitions from the common base class.