Simple type class. T classes typically have no explicit constructor and never have a destructor. They can be allocated on the stack or heap.
T classes are generally used to encapsulate integers, booleans and simple other types, or as enumerations:
TDayOfWeek weekday; // An enumeration TBool doContinue = ETrue; // A boolean value TPoint origin; // A point object having TInt X and TInt Y member variables
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| SettingItemList drawing problem | hong.lam | General Symbian C++ | 9 | 2006-10-26 12:44 |
| FullCanvas exit | ColinP | Mobile Java Media (Graphics & Sounds) | 2 | 2004-01-06 13:47 |
| 菜鸟问题, 有关forward declarations | l2mz | Symbian | 2 | 2006-08-09 02:50 |
| How to declare Array of User defined class in symbian c++?? | shahzadamin | General Symbian C++ | 8 | 2006-10-02 07:54 |
| Cannot instantiate abstract class!!!! | Tanya | General Symbian C++ | 3 | 2007-09-01 15:10 |