Assigning a derived class reference to a base class variable is safe:

a. because the derived class has an object of its base class.
b. because the derived class is an object of its base class.
c. only when the base class is abstract.
d. only when the base class is concrete.


b. because the derived class is an object of its base class.

Computer Science & Information Technology

You might also like to view...

Any application that opens an Access database writes a(n) ________ in the directory to indicate that the database in use.

a) in-use file b) text file c) lock file d) permission file e) None of the above.

Computer Science & Information Technology

A centralized global deadlock detector holds the union of local wait-for graphs. Give an example to explain how a phantom deadlock could be detected if a waiting transaction in a deadlock cycle aborts during the deadlock detection procedure.

What will be an ideal response?

Computer Science & Information Technology

The Properties window in Visual Basic contains ________ tabs

A) four B) five C) three D) two

Computer Science & Information Technology

Supporters of neutral locations for interviews believe that it _____.

A. makes the interviewee feel comfortable during the meeting B. gives the interviewee easy access to supporting material that might be needed C. keeps interruptions to a minimum so people can concentrate fully D. gives the interviewee an opportunity to take calls during the interview

Computer Science & Information Technology