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


Answer: C

Computer Science & Information Technology

You might also like to view...

If a worksheet is set to print in portrait orientation, where the page is taller than it is wide, you can change this to ____________________ orientation, where the page is wider than it is tall.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You can use the Ctrl+Alt+________ combination on the Host to send the Ctrl+Alt+Delete sequence to the VM

a. Insert b. Home c. End d. Backspace

Computer Science & Information Technology

The Convert selection to multi-state object button becomes the _______________ once an object has been converted to a multi-state object.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A loop that accumulates a total as it reads each number from a series is often said to keep a(n) __________.

a. average b. maximum value c. running total d. accumulation

Computer Science & Information Technology