Theclass contains the actual text displayed in a widget. A single object can be shared by multiple widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc. may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could integrate with an application's concept of undo/redo.