Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
7 / 187
What is handle classes?
Answer:
i. A handle providing the user interface and a representation holding all or most of the object’s state.
ii. The connection between the handle and the representation is typically a pointer to the handle.
iii. Handles have a bit more data than the simple representation, but not much more.
iv. The layout of a handle is typically stable even when the representation changes and also that handles are enough to move around relatively freely so that pointer and references need not be used by the user.
Asked In ::
Mayank Mittal
23 Feb, 2019 5:07 AM
i. A handle providing the user interface and a representation holding all or most of the object’s state.
ii. The connection between the handle and the representation is typically a pointer to the handle.
iii. Handles have a bit more data than the simple representation, but not much more.
iv. The layout of a handle is typically stable even when the representation changes and also that handles are enough to move around relatively freely so that pointer and references need not be used by the user.
ii. The connection between the handle and the representation is typically a pointer to the handle.
iii. Handles have a bit more data than the simple representation, but not much more.
iv. The layout of a handle is typically stable even when the representation changes and also that handles are enough to move around relatively freely so that pointer and references need not be used by the user.