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
Q28: Java uses late binding for methods that
Q29: Which of the following statements about the
Q30: Consider the following class definitions. public class
Q31: Inheritance implies an "is-a" relationship.
Q32: Inheritance is an example of what type
Q34: Which operator is used to determine if
Q35: Composition is also called _.<br>A) inheritance<br>B) aggregation<br>C)
Q36: Suppose there are three classes named Shape,
Q37: A polymorphic reference variable can refer to
Q38: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB8472/.jpg" alt=" -Based on the