Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
delegation is a technique that can be used, depending on the standard used:
Delegation is not supported in C++98.
Delegation is the technique of constructors calling each other:
struct MyClass |
Or a more elaborate example:
#include <iostream> |
Producing the screen output:
Creating an instance of MyClass without arguments |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.