Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why do we need relationships between classes?
d 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.
d
See lessExplanation: 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.
How many types of Association can be there between classes?
d Explanation: There can be four types of an association relationship between classes namely one-to-one, one-to-many, many-to-one and many-to-many.
d
See lessExplanation: There can be four types of an association relationship between classes namely one-to-one, one-to-many, many-to-one and many-to-many.
How the relationship is made in Association?
a 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.
a
See lessExplanation: 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.
Which type of relationship is modelled by Inheritance?
a Explanation: Inheritance models Is-A type of relationship between classes. This is because in this case derived class inherits all property of the base class and Is-A type of B class.
a
See lessExplanation: Inheritance models Is-A type of relationship between classes. This is because in this case derived class inherits all property of the base class and Is-A type of B class.
How many types of class relationships are there?
d Explanation: There are basically four types of class relationships namely Inheritance, Aggregation, Composition and Association relationships between classes.
d
See lessExplanation: There are basically four types of class relationships namely Inheritance, Aggregation, Composition and Association relationships between classes.
What is the class relationship?
d Explanation: The Class relationship is a concept that helps us in differentiating how one class is related to other classes, the power of one over other and which part one class can be accessed by other class.
d
See lessExplanation: The Class relationship is a concept that helps us in differentiating how one class is related to other classes, the power of one over other and which part one class can be accessed by other class.
Which operator is used to take OR of two bitset variables?
c Explanation: | operator is used as OR operator for bitset variables in C++. ORing of two bits are 0 only if both are 0.
c
See lessExplanation: | operator is used as OR operator for bitset variables in C++. ORing of two bits are 0 only if both are 0.
Which operator is used to take AND of two bitset variables?
b Explanation: & operator is used as AND operator for bitset variables in C++. ANDing of two bits are 1 only if both are 1.
b
See lessExplanation: & operator is used as AND operator for bitset variables in C++. ANDing of two bits are 1 only if both are 1.
Which operator is used as not operator in bitset?
c Explanation: ~ operator is used as not operator i.e. the negation of a bit for bitset variables in C++.
c
See lessExplanation: ~ operator is used as not operator i.e. the negation of a bit for bitset variables in C++.
What happens when only one argument is supplied to flip() function?
b Explanation: When only one argument is supplied to flip() function then bit corresponding to that index only is flipped.
b
See lessExplanation: When only one argument is supplied to flip() function then bit corresponding to that index only is flipped.