This example overrides the method to free any data associated with the class.
SOM_Scope void SOMLINK BearsM_wpclsUnInitData(M_Bears *somSelf)
{
APIRET rc = NO_ERROR; /* Return code from Dos API */
M_BearsData *somThis = M_BearsGetData(somSelf);
M_BearsMethodDebug("M_Bears","myfM_wpclsUnInitData");
rc = DosFreeMem( _pBearClassData );
parent_wpclsUnInitData(somSelf);
}