Multiple Choice
Consider the following class definitions.public class BClass
{
Private int x;
Private double y; public void print() { }
}public class DClass extends BClass
{
Private int a;
Private int b; public void print() { }
}Suppose that you have the following statement.DClass dObject = new DClass() ;How many instance variables does dObject have?
A) zero
B) two
C) three
D) four
Correct Answer:

Verified
Correct Answer:
Verified
Q8: An abstract class _.<br>A) does not have
Q11: Interfaces are defined using the reserved word
Q14: The method toString() is a public member
Q16: Based on the diagram in the accompanying
Q22: In dynamic binding, the method that gets
Q26: Redefining a method of a superclass is
Q29: Which of the following statements about the
Q37: A polymorphic reference variable can refer to
Q46: You must always use the reserved word
Q47: If a class is declared final, then