View Single Post
Re: [C++] Class names
Old
  (#8)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: [C++] Class names - 25-08-2005

Whistler, I think what he means is that he wants the base class to be able to find out what the derived class is. Like this:

Code:
CBaseClass *instance = new CDerivedClass;
instance.identify();
If you use your method, wouldn't it always return the main class's name?


sfx1999.postcount++
  
Reply With Quote