Consider the following class definitions: Which of the following correctly sets the values of x and y?
A) void dClass::setXY(int a, int b)
{
bClass::setX(a) ;
y = b;
}
B) void dClass::setXY(int a, int b)
{
x = a;
y = b;
}
C) void dClass::setXY(int a, int b)
{
x = bClass::setX(a) ;
y = bClass::setY(b) ;
}
D) void dClass::setXY(int a, int b)
{
x = bClass.setX(a) ;
b = y;
}
Correct Answer:
Verified
Q21: To _ a public member function of
Q26: Which of the following statements about inheritance
Q27: The preprocessor directive _ is used to
Q28: In _ (aggregation), one or more members
Q30: The constructor of a derived class cannot
Q31: If the corresponding functions in the base
Q33: Which of the following is true about
Q36: C++ provides _ functions as a means
Q39: OOP implements _.
A) UML
B) IPE
C) EIP
D) OOD
Q40: If inheritance is public, all protected members
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents