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

1. Redefining and overriding are exactly the same thing.

2. A class template can be derived from a non-template class.


1. False
Explanation: If you put virtual in the base class for a function name whose signature is the same down the inheritance chain, then you are overriding. If you leave off the virtual keyword here you are redefining. A difference arises only when you access the member function through a pointer or a reference to a base class and the object referred to is of a derived class type. Otherwise, the behavior is the same.
2. True

Computer Science & Information Technology

You might also like to view...

You can use a(n) ____________ to test a conditional expression and return either true or false.

a. reference parameter b. Boolean method c. if-else statement d. void method

Computer Science & Information Technology

_____ allows you to click at the beginning and end of text that you want to highlight instead of holding the mouse button down while dragging over the text.

A. ClickLock B. SelectLock C. TextLock D. HighlightLock

Computer Science & Information Technology

How is the Dynamic Host Configuration Protocol (DHCP) used?

What will be an ideal response?

Computer Science & Information Technology

Unlike early innovations such as the mouse and the inkjet printer, most technology advances today affect only output.    

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

Computer Science & Information Technology