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.
You might also like to view...
In a vector, which of the following statements is true?
a. Indexing vector access is range checked. b. The range of legal index values for a vector is 0 to the value of v.size()-1 c. To add a value use the member function v.push_front( ) d. To increase or decrease a vector’s size v.new_size(newSize);
Use the ______ element to create logical areas on a web page that are embedded within paragraphs or other block formatting elements.
a. div b. span c. both a and b d. neither a nor b
Answer the following statements true (T) or false (F)
1) String method capitalize returns a new string where the first character of each word in the string is the one and only uppercase character in the word. 2) String method find searches a string for a substring and raises a ValueError exception if the string does not contain a substring. 3) Method rindex returns the highest index at which the specified substring begins. 4) Most string methods modify the string in-place. 5) Any string can be treated as a regular expression.
The Snipping tool does not allow you to take snips of the ________ screen
Fill in the blank(s) with correct word