Correct Answer
verified
Multiple Choice
A) interfaces
B) modulary
C) information hiding
D) code reuse
E) correctness
Correct Answer
verified
Multiple Choice
A) public BClass(int a, int b, int c)
{
Super(a, b, c) ;
}
B) public BClass(int a, int b, int c)
{
X = a;
Y = b;
Z = c;
}
C) public BClass(int a, int b, int c)
{
Z = c;
}
D) public BClass(int a, int b, int c)
{
Super(a, b) ;
Z = c;
}
E) public BClass(int a, int b, int c)
{
Super() ;
}
Correct Answer
verified
Multiple Choice
A) has-a
B) is-a
C) was-a
D) instance-of
E) alias
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
True/False
Correct Answer
verified
Multiple Choice
A) a base class is a parent class or super class
B) a base class is a child class or derived class
C) a child class is a super class of its parent
D) a parent class is a subclass of its child
E) None of these are correct
Correct Answer
verified
Multiple Choice
A) x, y, z, a, b, q
B) a, b, q
C) a, q
D) x, z, a, q
E) x, a, q
Correct Answer
verified
Multiple Choice
A) Redefine addEm and changeEm without referencing super.addEm() or super.changeEm() .
B) Redefine addEm to return the value of z+super.addEm() , but leave changeEm alone.
C) Redefine changeEm to call super.changeEm() and then set z = x + y, but leave addEm alone.
D) Redefine addEm to return the value of z+super.addEm() and redefine changeEm to call super.changeEm() and then set z = x + y.
E) Redefine changeEm to call super.changeEm() without doing anything to z, and redefine addEm to return super.addEm() .
Correct Answer
verified
Showing 41 - 49 of 49
Related Exams