Which statement best describes the relationship between superclass and subclass types?

a. A subclass reference cannot be assigned to a superclass variable and a superclass reference cannot be assigned to a subclass variable.
b. A subclass reference can be assigned to a superclass variable and a superclass reference can be assigned to a subclass variable.
c. A superclass reference can be assigned to a subclass variable, but a subclass reference cannot be assigned to a superclass variable.
d. A subclass reference can be assigned to a superclass variable, but a superclass reference cannot be assigned to a subclass variable.


d. A subclass reference can be assigned to a superclass variable, but a superclass reference cannot be assigned to a subclass variable.

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. There is only one kind of parameter passing in C++, namely call-by-value. Explain. 2. The call-by-reference mechanism is specified in the function declaration and definition, using a $ between the type and the parameter.

Computer Science & Information Technology

The advantage of using __________ is that you can focus on the details of any given component without losing sight of the other component.

a. black boxes b. services c. a platform d. layers of abstraction

Computer Science & Information Technology

Semantics is the structure and order of the function and the arguments used by Excel to perform a calculation

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following business intelligence tools performs operations on data based on formulas created by the end user?

a. Spreadsheet b. Drill-down analysis c. Online analytical processing d. Data mining

Computer Science & Information Technology