Explain the difference between virtual functions, late binding, and polymorphism.

What will be an ideal response?


There isn’t much difference between these. They all refer to the same idea. Virtual function is a kind of member functions in an inheritance chain that the mechanism, late binding, decides which one will be used. Polymorphism is a term that in this context refers to the late binding mechanism.

Computer Science & Information Technology

You might also like to view...

The basic generic functional interface ________ in package java.util.function contains method accept that takes a T argument and returns void. Performs a task with its T argument, such as outputting the object, invoking a method of the object, etc.

a. Consumer b. Function c. Supplier d. BinaryOperator

Computer Science & Information Technology

A wired LAN with a device that allows interconnection to some wireless users, but the wired and wireless stations use different LAN protocols, is known as

a. cable extension b. access point c. ad hoc d. none of the above

Computer Science & Information Technology

A(n) ________ can be run from a button added to the Quick Access Toolbar

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Photoshop gives you the opportunity to save notes with PDF files but not other types of image files.

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

Computer Science & Information Technology