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

Computer Science & Information Technology

You might also like to view...

A user notices that when plugging a company-assigned laptop into a network port it is able to get an IP address via DHCP. However, when plugging a personal laptop into the same port, it does not get a valid IP address. Which of the following is the MOST likely cause of this?

A. The company is using 802.1X port security. B. The personal laptop is using an unsupported operating system. C. The network cable is only Cat 5e. D. Port 53 is closed on the personal laptop.

Computer Science & Information Technology

A person or organization that has a vested interest in a particular aspect of the planning or operation of an organization-for example, the information assets used in a particular organization-is known as a(n) _________.

A. stakeholder B. investiture C. venture capitalist D. unicorn

Computer Science & Information Technology