Assigning a subclass reference to a superclass variable is safe ________.

a. because the subclass object has an object of its superclass.
b. because the subclass object is an object of its superclass.
c. only when the superclass is abstract.
d. only when the superclass is concrete.


b. because the subclass object is an object of its superclass.

Computer Science & Information Technology

You might also like to view...

You can set a motion tween to ease ____.

a. up b. in c. out d. down

Computer Science & Information Technology

Compare and contrast eager with lazy replication.

What will be an ideal response?

Computer Science & Information Technology

The initial client meeting is a perfect opportunity to gather information about project specifications. What are four examples of information you should have before beginning the project?

What will be an ideal response?

Computer Science & Information Technology

The four traversal algorithms we mentioned in the text for binary search trees are _______, _______, _______ and ______.

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

Computer Science & Information Technology