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

1. Virtual functions are implemented with a table look up that is done at run time.

2. Late binding refers to a failure to secure one’s ski boots.


1. True
Explanation: When you label a function virtual, that tells the compiler, “Remember this label. Put information about all the functions labeled virtual in a table so you can decide at run-time which version one to use.”.
2. False
Explanation: Late binding refers to the fact that the decision as to which virtual function member in an inheritance hierarchy is called may be made during program execution rather than at compile time.

Computer Science & Information Technology

You might also like to view...

The Windows feature _____ makes it easy to connect devices without manually installing device drivers.

A. Plug and Run B. Plug and Play C. Plug-In D. Plug and Install

Computer Science & Information Technology

A megabyte is 1,048,576 bytes. Explain why it is not 1,000,000.

What will be an ideal response?

Computer Science & Information Technology

When would a programmer write more than one constructor?

A. You never have more than one constructor. B. The constructor cannot be overloaded. C. The one object can be created by two different constructors. D. When the object can be initialized in more than one way.

Computer Science & Information Technology

Which of the following is a structural diagram?

A) use case diagram B) state chart diagram C) sequence diagram D) class diagram

Computer Science & Information Technology