Multiple Choice
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
Correct Answer:
Verified
Q1: The class io is the base class
Q2: The preprocessor directive _ is used to
Q3: _ is the ability to use the
Q11: _ is a "has-a" relationship.<br>A) Inheritance<br>B) Encapsulation<br>C)
Q17: Existing classes, from which you create new
Q18: Classes can create new classes from existing
Q19: _ is the ability to combine data,
Q23: Inheritance is an example of a(n) _
Q32: What is the output of the following
Q34: The _ members of an object form