PSZ szDefaultClassTitle = "Password Folder"; /* * * METHOD: wpclsQueryTitle PUBLIC * * PURPOSE: * Return the string "Password Folder" * */ #undef SOM_CurrentClass #define SOM_CurrentClass M_PWFolderCClassData.parentMtab SOM_Scope PSZ SOMLINK pwfoldercls_wpclsQueryTitle(M_PWFolder *somSelf) { /* M_PWFolderData *somThis = M_PWFolderGetData(somSelf); */ M_PWFolderMethodDebug("M_PWFolder","pwfoldercls_wpclsQueryTitle"); return(szDefaultClassTitle); }
This example shows an overridden class method _wpclsQueryTitle, which is modified to supply a default title for an object within the class.