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
You might also like to view...
The nonprinting symbol that displays where a manual line break is inserted is the:
a. short arrow b. bent arrow c. a anchor
The process of inserting information from a source file into a destination file, while maintaining a connection between the two files
a. Linking b. Recording c. Embedding