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

1. A the binding of virtual function is done at runtime if called using an object.

2. Upcasting causes no problems:

1. True
Explanation: If the binding can be done at compile time, compiler is smart enough to avoid the overhead of the virtual table.
2. false
Explanation: It is legal but produces the slicing problem.

Computer Science & Information Technology

You might also like to view...

Which of the following defines the required distance between each LAN drop that will be installed within a building?

A. Acceptance use policy B. Wiring schematics C. Logical network diagrams D. Company regulations

Computer Science & Information Technology

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

1. Communication support makes it possible for the user to communicate with the operating system. 2. The application program transparently requests operating system services through an application programming interface (API). 3. On many operating systems, the standard shell can be replaced or augmented by a custom shell. 4. A system operator or a user identifies the program to be launched by issuing one or more commands directly to the operating system. 5. A user communicates with a menu interface by typing brief, cryptic commands.

Computer Science & Information Technology