Changes between Version 1 and Version 2 of code/doc/SubclassIdentifier
- Timestamp:
- Feb 25, 2008, 12:15:10 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/SubclassIdentifier
v1 v2 28 28 myidentifier.isExactlyA(Class(A1B1)); // Returns true 29 29 (*myidentifier)->getName(); // Returns "A1B1" 30 myidentifier->getName(); // Returns "A1B1" ( And yes, the "->" is correct. It's overloaded.)30 myidentifier->getName(); // Returns "A1B1" (Yes, the "->" is correct. It's overloaded.) 31 31 32 32 A1* newobject = myidentifier.fabricate(); // Returns a new instance of A1B1, downcasted to A1