- Discuss the interplay between scoping and recursion
for virtual functions.
- How would you express the invariant behavior
of an employee class?
Explain what problems may occur when adding a bonus to the
salary of a derived manager class.
- Explain how compound objects may
be constructed by employing the diamond structure.
- Explain how the functionality of a class may be
made accessible through an arbitrary interface class
by employing implicit delegation.
- What are smart pointers? Why are they useful?
How would you implement them?
- Sketch how you would implement dynamic role switching in C++.
- What is a gadget?
Give an example showing the interaction between a gadget
and a window.
- Characterize the notion of event in a window environment.
Characterize also the interaction between events and the gadget
to which the event is directed.
- Sketch how the Smalltalk MV(C) paradigm may
be implemented in C++.
Give a simple example of its use.
- Explain how events may be used to regulate
the effects of user actions.
Why are events needed?