Difference between ASSERT and VERIFY. Differentiate between a template class and class template
Difference between ASSERT and VERIFY.ASSERT reads and evaluates an expression when the program is in debug mode and it throws an exception if the result is 0 and program terminates whereas VERIFY reads and evaluates an expression in Debug and release version and if result is 0 it throws an exception only in debug mode.
ASSERT is not present in the release build version and evaluation of its expression that will be deleted whereas VERIFY will be present and the evaluation of the expression will be left intact.
Differentiate between a template class and class templateTemplate Class is also termed as function templates which are special functions that can operate with generic types. It allows creating a function template whose functionality can be taken to more than one type or class without repeating entire code for each type. The declarations are:-
template <class identifier> function_declaration;
template <typename identifier> function_declaration;
Class template have the members that use template parameters. It specifies how individual classes can be constructed much like the way a class specifies and how individual objects can be constructed. Through this plain classes can be derived whereas through template class plain templates can be derived. For example:-
template <class T>