Difference between ASSERT and VERIFY.

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 template

Template 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>
What is the base class for MFC Framework?
CObject class is the main base class for MFC Framework. It is the mother of all other classes. Almost all classes in MFC are derived from CObject one of the exception is CString.............
Difference between GetMessage, PostMessage & PeakMessage.
GetMessage() function takes the message to the message queue and make a procedure call. Then it waits for a message to be placed..............
How to handle dynamic menus in MFC? What happens when client calls CoCreateInstance?
MFC got built in function to handle dynamic menus. It comes after the message maps. By overriding ...........
Post your comment